Skip to content

Instantly share code, notes, and snippets.

@WebEndevSnippets
Created October 28, 2012 15:55
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 WebEndevSnippets/3968980 to your computer and use it in GitHub Desktop.
Save WebEndevSnippets/3968980 to your computer and use it in GitHub Desktop.
Genesis: Initialize prettyPhoto
add_action( 'genesis_after', 'we_initialize_prettyphoto' );
/**
* Initialize prettyPhoto
*
*/
function we_initialize_prettyphoto() {
?>
<script type="text/javascript" charset="utf-8">
jQuery(document).ready(function($){
$("a[rel^='prettyPhoto']").prettyPhoto({
animation_speed: 'normal',
social_tools: false,
show_title: false
});
});
</script>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment