Infocus old: remove link on gallery image

resolved (3 posts) (2 voices)

  1. Vorarlberg


    I have the old infocus theme.

    In my portfolio galleries I would like to either remove the automatic link on the thumbnail or link directly to the post.

    How can I do this?

    Posted 6 years ago #
  2. Elliott

    Hello Vorarlberg,

    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 the_permalink(); ?>">

    Posted 6 years ago #
  3. Vorarlberg

    Thanks Elliott,

    works like a charm!

    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