Gallery Page Image Link

pending (6 posts) (3 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 6 years 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 6 years 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 6 years ago #
  4. Elliott
    Support

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

    Posted 6 years ago #
  5. n2pics
    Member

    Is there a way to do this with the child theme or possibly with custom css? I can't find the 'includes' folder even in the master theme. Thanks in advance for your help.

    Posted 3 years ago #
  6. Elliott
    Support

    For the latest version try opening up /wp-content/themes/[your_theme]/lib/shortcodes/15-portfolio.php and change line 305 from this.

    'prettyphoto' => ( empty( $_post[$id][0] ) ? true : false ),

    To this.

    'prettyphoto' => false,

    Posted 2 years 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