X
201225

Close modal div showing up on every page except events page

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!

BY: axlright - Oct 21,2020 AT 8:40AM - 4 years ago
    • Artem Oct 21,2020 AT 10:22AM - Posted 4 years ago - #201244

      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?

    • axlright Oct 21,2020 AT 1:12PM - Posted 4 years ago - #201281

      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

    • Artem Oct 21,2020 AT 2:03PM - Posted 4 years ago - #201293

      Hi Alex,

      Have you tried some other plugins for this, to optimize the loading?

    • axlright Oct 23,2020 AT 8:23AM - Posted 4 years ago - #201740

      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>

    • Artem Oct 23,2020 AT 11:16AM - Posted 4 years ago - #201784

      Could you tell us do you still have this issue, even with EventON 3.0.1?

    • axlright Oct 27,2020 AT 10:42AM - Posted 4 years ago - #202514

      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

    • axlright Oct 27,2020 AT 11:08AM - Posted 4 years ago - #202516

      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.

    • Artem Oct 27,2020 AT 1:11PM - Posted 4 years ago - #202550

      Could you show us the issue again (on your website) so we can check the code?

You must login to reply to this ticket

HelpDesk

Welcome to EventON helpdesk.

EventON is the #1 Best selling event calendar plugin for WordPress websites in envato marketplace.

Checkout EventON