This markup is showing up on every page of our website except the events page. No idea why or how to get rid of it.
See an example at https://stillaustin.com/
Thanks!
Oct 21,2020 AT 8:40AM - 4 years ago -Hello,
Could you try going to EventON Settings > disable Concatenate all eventon addon style files – Beta (Only supported addons) and Load eventON scripts and styles only on eventON pages?
Thanks! Yes, disabling “Load eventON scripts and styles only on eventON pages” does the trick, but that just loads all your scripts and styles on EVERY PAGE of our website, which we can’t have for performance reasons.
How can we keep that close div from showing up on every page without enabling your scripts and styles on every page?
-Alex
Hi Alex,
Have you tried some other plugins for this, to optimize the loading?
Well, there are a lot of scripts and styles loaded, and we only need them on one page. Turning off your “Load eventON scripts and styles only on eventON pages” and then dequeuing and deregistering the styles and scripts via functions.php does the same thing – it makes that lighbox close markup show up on every page except the page that has the events.
What is creating this markup on every page of the website? Why is this markup being added to every page, even those with no events?
<div id=’evo_global_data’ data-d='{“calendars”:[]}’></div>
<div class=’evo_lightboxes’ style=’display:block’>
<div class=’evo_lightbox eventcard eventon_events_list’ id=” >
<div class=”evo_content_in”>
<div class=”evo_content_inin”>
<div class=”evo_lightbox_content”>
<a class=’evolbclose ‘>X</a>
<div class=’evo_lightbox_body eventon_list_event evo_pop_body evcal_eventcard’> </div>
</div>
</div>
</div>
</div>
Could you tell us do you still have this issue, even with EventON 3.0.1?
Hello!
With v3.0.2, I have these set to OFF:
– Load eventON scripts and styles only on eventON pages and
– Load eventON scripts and styles only on eventON pages
And I have these functions to only load style and scripts on required pages
if ( ! is_page( 1103 ) ) {
wp_dequeue_style( 'evcal_cal_default' );
wp_deregister_style( 'evcal_cal_default' );
wp_dequeue_style( 'eventon_dynamic_styles' );
wp_deregister_style( 'eventon_dynamic_styles' );
}
if ( ! is_page( 1103 ) ) {
wp_dequeue_script( 'evcal_functions' );
wp_deregister_script( 'evcal_functions' );
wp_dequeue_script( 'evcal_easing' );
wp_deregister_script( 'evcal_easing' );
wp_dequeue_script( 'evo_handlebars' );
wp_deregister_script( 'evo_handlebars' );
wp_dequeue_script( 'evo_mobile' );
wp_deregister_script( 'evo_mobile' );
wp_dequeue_script( 'evo_moment' );
wp_deregister_script( 'evo_moment' );
wp_dequeue_script( 'evo_mouse' );
wp_deregister_script( 'evo_mouse' );
wp_dequeue_script( 'evcal_ajax_handle' );
wp_deregister_script( 'evcal_ajax_handle' );
wp_dequeue_script( 'eventon_init_gmaps' );
wp_deregister_script( 'eventon_init_gmaps' );
wp_dequeue_script( 'eventon_gmaps' );
wp_deregister_script( 'eventon_gmaps' );
}
And everything works great. So it seems the 3.0.1 made it so that I no longer need to load the evcal_cal_default
stylesheet. The .evcal_cal_default
is now set to visibility: hidden;
Thanks!
-Alex
Actually, nevermind. I still have to load the `evcal_cal_default` stylesheet in order to hide the modal close element. Bummer. So nothing has changed for me with the 3.0.1 / 3.0.2 update.
Could you show us the issue again (on your website) so we can check the code?