views:

29

answers:

3

I wrote a read more function for my front page that loads in a section of html from another file.

When this section drops down the gallery enclosed within this section doesn't work. However, if you go to the single page article it works.

I know it is something to do with this.

I'm using this plugin but I'm unsure of how to fix it.

Does anyone know what I can do?

thanks.

A: 

Trying using prettyPhoto lightbox, I've had a lot of success using it with WordPress.

http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/

philmadelphia
A: 

I tried that and added the following code:

$(document).ready(function(){
    $("a[rel^='prettyPhoto']").live('click',function(e){                
        alert("clicked");
        $("a[rel^='prettyPhoto']").prettyPhoto();
    });
});

When the image is clicked, the alert pops up but the browser still diverts you to the link.

Any ideas?

henryprescott
and the selector is deffinitely working as I can get .attr("title") OK.
henryprescott
A: 

Found the solution; use this - http://www.gettopup.com/

henryprescott