Skip to content

Instantly share code, notes, and snippets.

@ckpicker
Created July 31, 2013 19:34
Show Gist options
  • Select an option

  • Save ckpicker/6125378 to your computer and use it in GitHub Desktop.

Select an option

Save ckpicker/6125378 to your computer and use it in GitHub Desktop.
jQuery to add ID to Event Image Section
function print_my_inline_script() {
?>
<script type="text/javascript">
jQuery(document).ready(function()
{
jQuery("input[name='event_image']").parents(".tribe-community-event-details").attr("id","event_images");
});
</script>
<?php
}
add_action( 'wp_footer', 'print_my_inline_script' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment