Created
March 5, 2014 14:08
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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