Remove link on Featured Image

Home Forums Calendar Products Events Calendar PRO Remove link on Featured Image

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1446344
    Leslie
    Participant

    I would like to remove the link from the Featured Image, specifically in List view. I cannot seem to find the file where the tag is around the featured image so I can remove it.

    Can you please assist?

    Thanks!
    Leslie

    #1447278
    Jennifer
    Keymaster

    Hi Leslie!

    The link is actually set in the tribe_event_featured_image function (found in wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php. However, there is a filter that you can use to remove the link. Try adding the following to the functions.php file of your child theme:

    function tribe_remove_featured_image_link( $link ) {
    if ( tribe_is_list_view() ) {
    $link = false;
    }
    return $link;
    }
    add_filter( 'tribe_event_featured_image_link', 'tribe_remove_featured_image_link' );

    Let me know if this helps!

    Thanks,

    Jennifer

    #1468226
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Remove link on Featured Image’ is closed to new replies.