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!
Gallery Page Image Link
(4 posts)
(2 voices)
-
Posted 11 months ago #
-
Hello kellycook11,
Open up
/wp-content/themes/infocus/lib/includes/template-portfolio-gallery.phpand 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 # -
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 # -
Your welcome kellycook11, let us know if you have any other questions.
Posted 11 months ago #
Reply
You must log in to post.













