Gallery Page Image Link

resolved (4 posts) (2 voices)

  1. Hi, I have created a gallery page here: http://www.valerielyn.com/gallery/. I am wondering if there is a way to disable the lightbox on the images on this main gallery page without affecting the lightbox on the images on the individual post pages. Instead of a lightbox, I would like the images on the main gallery page to link to their respective posts (same behavior as the "Read More" button). I would appreciate any help you can offer! Thank you!

    Posted 11 months ago #
  2. Elliott
    Support

    Hello kellycook11,

    Open up /wp-content/themes/infocus/lib/includes/template-portfolio-gallery.php and on line 214 you should see this,

    <a class="load_portfolio_img" rel="lightbox[portfolio]" href="<?php echo $portfolio_video_link; ?>">

    Change it like this,

    <a class="load_portfolio_img" href="<?php echo $portfolio_video_link; ?>">

    I think that will link it to the post, if it does not then change it like this,

    <a class="load_portfolio_img" href="<?php the_permalink(); ?>">

    Let us know if that works for you.

    Posted 11 months ago #
  3. You guys are amazing! Thanks so much! Removing the rel="lightbox[portfolio]" caused the link to just open the large version of the image, but changing the href to the permalink works perfectly. Thank you again, best customer support I have ever had.

    Posted 11 months ago #
  4. Elliott
    Support

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

    Posted 11 months ago #

Reply

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