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

    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

    #1360661

    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);
    • This reply was modified 2 years, 3 months ago by Guenni007.
    #1360689

    Hi Eva,

    Please refer to @guenni007’s post above :)


    @guenni007
    Thanks as always :)

    Cheers!
    Yigit

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