JS error

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1354020
    Aurélien
    Participant

    Hi,

    I’m using Event Ticket and Event Ticket Plus for a custom post type. I’ve noticed that it loads this JS script on all page even those who do not need Event Ticket. Is that a bug?

    <script>
    		( function ( body ) {
    			'use strict';
    			body.className = body.className.replace( /\btribe-no-js\b/, 'tribe-js' );
    		} )( document.body );
    		</script>
    		<script type='text/javascript'> /* <![CDATA[ */var tribe_l10n_datatables = {"aria":{"sort_ascending":": activate to sort column ascending","sort_descending":": activate to sort column descending"},"length_menu":"Show _MENU_ entries","empty_table":"No data available in table","info":"Showing _START_ to _END_ of _TOTAL_ entries","info_empty":"Showing 0 to 0 of 0 entries","info_filtered":"(filtered from _MAX_ total entries)","zero_records":"No matching records found","search":"Search:","all_selected_text":"All items on this page were selected. ","select_all_link":"Select all pages","clear_selection":"Clear Selection.","pagination":{"all":"All","next":"Suivant","previous":"Previous"},"select":{"rows":{"0":"","_":": Selected %d rows","1":": Selected 1 row"}},"datepicker":{"dayNames":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"dayNamesShort":["dim","lun","mar","mer","jeu","ven","sam"],"dayNamesMin":["D","L","M","M","J","V","S"],"monthNames":["janvier","f\u00e9vrier","mars","avril","mai","juin","juillet","ao\u00fbt","septembre","octobre","novembre","d\u00e9cembre"],"monthNamesShort":["janvier","f\u00e9vrier","mars","avril","mai","juin","juillet","ao\u00fbt","septembre","octobre","novembre","d\u00e9cembre"],"nextText":"Next","prevText":"Prev","currentText":"Today","closeText":"Done"}};/* ]]> */ </script>

    Thanks for your time!

    #1354686
    Cliff
    Member

    Hi. I tested and confirmed, but am not sure it causes any issues.

    https://theeventscalendar.com/support/forums/topic/how-to-remove-events-calendar-from-custom-template/ might include the code snippet(s) you’re wanting.

    Please share your thoughts on this.

    #1354772
    Aurélien
    Participant

    Thanks for the link, it removed the code. I prefer doing it to prevent cache / performance issues.

    #1355260
    Cliff
    Member

    Okay, thanks for letting me know. Have a great rest of your week.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘JS error’ is closed to new replies.