Skip to content

Instantly share code, notes, and snippets.

@ckpicker
Created March 5, 2014 14:08
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/9367837 to your computer and use it in GitHub Desktop.
Save ckpicker/9367837 to your computer and use it in GitHub Desktop.
Events Calendar PRO 3.4 // Add CSS Class to custom fields based on content
add_action( 'wp_footer', 'options_add_javascript' );
function options_add_javascript() {
?>
<script type="text/javascript">
//Add Class to Option 1
jQuery('dd.tribe-meta-value:contains("Option 1")').addClass('option-1');
//Add Class to Option 2
jQuery('dd.tribe-meta-value:contains("Option 2")').addClass('option-2');
</script>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment