Created
October 28, 2012 15:55
-
-
Save WebEndevSnippets/3968980 to your computer and use it in GitHub Desktop.
Genesis: Initialize prettyPhoto
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( '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