Help With Lightbox

resolved (10 posts) (3 voices)

  1. I am having getting my gallery images to open in a lightbox. Could you please tell me what I need to do to enable this functionality?

    Posted 6 years ago #
  2. Ruderic


    I just visited your website, and it seems that the gallery is working fine.

    What's the problem with it?

    Posted 6 years ago #
  3. Hi,

    Thank you for the response. I ended up installing a lightbox plugin to get the gallery lightbox to work. Is there a way to get the images to appear in lightbox style without a plugin? I have disabled the plugin so you can see the issue I am having.

    Posted 6 years ago #
  4. Elliott

    Hello kellycook11,

    You are using the [gallery] shortcode correct?

    I'm not sure if this will work but we can try. Open up /wp-content/themes/infocus/lib/script/custom.js and on line 219 you should see this,

    jQuery("a[rel^='prettyPhoto'], a[rel^='lightbox']").prettyPhoto({

    Try changing it like this,

    jQuery("a[rel^='prettyPhoto'], a[rel^='lightbox'], a[title*='WP-GAL']").prettyPhoto({

    Posted 6 years ago #
  5. Hi Elliott! That fixed the issue! Thank you so very much. :)
    Does this theme support previous/next buttons in the lightbox gallery? When I click a thumbnail on this page:, I get a lightbox popup, which is beautiful. I would really like for there to be a previous/next button in the lightbox (either static or on hover) so that you don't have to close this lightbox and click another thumbnail to view the next image in the gallery. Any help is much appreciated!

    Posted 6 years ago #
  6. Elliott

    Try changing it to this instead,

    jQuery("a[title*='WP-GAL']").attr("rel", "prettyPhoto[gallery]");
    jQuery("a[rel^='prettyPhoto'], a[rel^='lightbox']").prettyPhoto({
    Posted 6 years ago #
  7. I implemented that change, but now when I click a thumbnail, all I see is the lightbox overlay and a progress spinner.

    Posted 6 years ago #
  8. Elliott

    Make sure that you do not have any other lightbox related plugins activated and also make sure that you update prettyPhoto.

    You can find instructions in this thread,

    Posted 6 years ago #
  9. That fixed it. Thank you so very much for your help!

    Posted 6 years ago #
  10. Elliott

    Your welcome kellycook11, let us know if you have any other questions.

    Posted 6 years ago #


You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme