Skip to content

Instantly share code, notes, and snippets.

@ckpicker
Created December 3, 2013 13:33
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 ckpicker/7769180 to your computer and use it in GitHub Desktop.
Save ckpicker/7769180 to your computer and use it in GitHub Desktop.
Community Events Add-on 3.2 // Hide specific category checkboxes with CSS
add_action( 'wp_head', 'community_add_css' );
function community_add_css() {
if (tribe_is_community_edit_event_page() || tribe_is_community_my_events_page()) {
?>
<style>
/* Hide the checkbox of Category ID 4 & 6 */
/* Change the line below for the IDs you want to hide */
li#tribe_events_cat-4, li#tribe_events_cat-6 {display:none !important;}
</style>
<?php
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment