Support

Home Forums Event Espresso Premium Overlapping Calendar in "Event Tickets and Datetimes"

Overlapping Calendar in "Event Tickets and Datetimes"

Posted: October 6, 2017 at 2:37 pm


gamesandstuff

October 6, 2017 at 2:37 pm

Image

When trying to select dates and times for events or ticket sales, the two adjacent calendars generated to select from partially overlap. This makes selecting certain dates incredibly difficult. Typing the date and time in manually is also made difficult by this calendar popping up. We are using Event Espresso Version 4.9.46.p


Josh

  • Support Staff

October 6, 2017 at 4:33 pm

Hi gamesandstuff,

Usually when the date/time selector looks like what’s in your screenshot, it’s the result of another plugin hooking into the date/time selector and changing some settings. Does the date/time selector’s appearance improve if you temporarily deactivate all other plugins?


gamesandstuff

October 6, 2017 at 4:38 pm

I deactivated all but Event Espresso, but we’re still experiencing this issue.


Josh

  • Support Staff

October 6, 2017 at 5:18 pm

That rules out the plugins, but the theme should also be ruled out. If you temporarily switch to the default twentyseventeen theme does the selector look like this instead?


gamesandstuff

October 6, 2017 at 6:16 pm

That appears to have fixed the issue, but we were using the Zoom Lite theme without issue for a while. This shows there’s a relationship, but can you venture a guess as to what the initial cause was?


Josh

  • Support Staff

October 9, 2017 at 11:57 am

I installed the Zoom lite theme and took a look at its code and I can see where it’s adding its own styles for the datepicker/timepicker inputs. I’m not sure why it’s adding those in the first place, but you can safely remove those for the Event Espresso editor page. You add this code to your website:

add_action( 
  'admin_print_styles-post-new.php', 
  'remove_zoom_admin_styles',
  12 
);
add_action( 
  'admin_print_styles-post.php', 
  'remove_zoom_admin_styles', 
  12 
);
function remove_zoom_admin_styles() {
  if ( !function_exists( 'get_current_screen' ) ) {
    return;
  }
  if( get_current_screen()->id == 'espresso_events' ) {
    wp_dequeue_style( 'ot-admin-css' );
  }
}

You can add the above to a functions plugin or into your WordPress theme’s functions.php file if you’re using a child theme.


gamesandstuff

October 11, 2017 at 10:21 am

This worked. Thank you for figuring this out.

The support post ‘Overlapping Calendar in "Event Tickets and Datetimes"’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso