Hello
the featured images (which are shown on top of every blogpost) are actually linked so that the image opens in a lightbox.
I dont want that.
The image should not have a link….just the image.
How do i tell Enfold not to link the featured image?
Eva Simone
try this in your child-theme functions.php:
(it avoids the generation of a link – and did not hamper only the link function – on seo reasons this might be better ):
use Ismaels solution:
function av_remove_featured_image_link($image) {
if (is_single()) {
$image = get_the_post_thumbnail( $current_post['the_id'], 'featured' );
}
echo $image;
}
add_filter('avf_post_featured_image_link','av_remove_featured_image_link', 10, 1);