Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13701

    Hello,

    I’d like to link the featured image of a post on the portfolio page to the post. By default the image is not linked to the post. I understand that I can manually apply the image link with “Link to page” on the portfolio post page. But this will also turn on the lightbox feature, what I’d not like to use.

    So basically my question is: What do I need to change in the code that all featured images are automatically linked to the post and the lightbox feature stays disabled.

    Thanks,

    -n-

    #80236

    This is what I want to know too. Please anyone can tell us the solution.

    Thanks,

    Sing

    #80237

    I figured out the solution:

    In includes/loop-portfolio-php replace:

    echo $slider->display($forceSmall);

    with:

    echo "<a href='".get_permalink()."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".get_the_title()."'>";
    echo $slider->display($forceSmall);
    echo "</a>";

    #80238

    Glad you were able to figure it out Noah. That looks correct looking at now :)

    Appreciate you posting your final solution for everyone!

    Regards,

    Devin

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Portfolio -> Link featured Image’ is closed to new replies.