Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #222666

    Hello,

    When you create a post with a featured picture if you click that picture in the blog it will take you the post.
    When you’re inside the post itself if you click the image with would display it in real size (like in a gallery). I would like to maintain picture inside post but remove the clicking option / link. So the picture is displayed but you can’t click on it.

    Thanks.

    • This topic was modified 10 years, 10 months ago by gmarco.
    #222769

    Hi gmarco!

    Please edit includes > loop-index.php, find this code on line 81:

    if($slider) $slider = '<a href="'.$link.'" title="'.$featured_img_desc.'">'.$slider.'</a>';
    

    Replace it with:

    if (!is_single()) {
                $slider = '<a href="'.$link.'" title="'.$featured_img_desc.'">'.$slider.'</a>';
    			} else {
    			$slider = $slider;	
    			}

    Best regards,
    Ismael

    #222822

    Thanks :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Remove featured image link inside post.’ is closed to new replies.