Infocus old: remove link on gallery image

resolved (3 posts) (2 voices)

  1. Vorarlberg
    Member

    Hi,

    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?
    thanks

    Posted 3 years ago #
  2. Elliott
    Support

    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 3 years ago #
  3. Vorarlberg
    Member

    Thanks Elliott,

    works like a charm!

    Posted 3 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