Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Forked from joshfeck/calendar-print-styles.css
Last active September 29, 2021 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/1b0f7a845f5e3327f75918162d8459ec to your computer and use it in GitHub Desktop.
Save Pebblo/1b0f7a845f5e3327f75918162d8459ec to your computer and use it in GitHub Desktop.
Custom styles for the Event Espresso 4 events calendar's iframe. Add the calendar-iframe-custom-styles.css file to your child theme (top level).
#ee-category-legend-ul #ee-category-li-70,
#ee-category-submit option[value=unlisted] {
display:none
}
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
add_filter('FHEE__CalendarIframe__display__css', 'tw_ee_add_iframe_calendar_custom_styles', 11, 2);
function tw_ee_add_iframe_calendar_custom_styles(array $stylesheets, $object) {
$stylesheets['calendar_iframe_custom'] = get_stylesheet_directory_uri() . DS . 'calendar-iframe-custom-styles.css';
return $stylesheets;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment