Viewing 2 replies - 1 through 2 (of 2 total)
  • Same issue here….
    Overall Plugin is very nice. let me do some hack. I l update it here.

    Finally Success!

    Add this below code to your functions.php

    add_filter('wp_get_attachment_link', 'rc_add_rel_attribute');
    function rc_add_rel_attribute($link) {
    global $post;
    return str_replace('<a href', '<a rel="prettyPhoto[pp_gal]" href', $link);
    }

    also enqueue a script to call this. as the plugins filter isnt calling.

    <script>
    					  jQuery(document).ready(function() {
    					    jQuery("a[rel^='prettyPhoto']").prettyPhoto({
    					    	social_tools : false,
    					    	show_title : false
    					    });
    					  });
    					</script>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fancy box not working’ is closed to new replies.