Okay
  Public Ticket #2451128
Featured image link
Closed

Comments

  •  16
    wheelsacrossmorocco started the conversation

    Hi

    I would like to make a featured image clickable on a portfolio page to direct to a standard page. It has been recommended via searches to add the below to the theme stylesheet which I haven't yet done.

    Is there a better way in Kalium?

    Thanks!

    function wpb_autolink_featured_images( $html, $post_id, $post_image_id ) {
    $html = ‘<a href="%E2%80%9D%E2%80%98" rel="nofollow">’ . $html . ‘</a>’;
    return $html;
    }
    add_filter( ‘post_thumbnail_html’, ‘wpb_autolink_featured_images’, 10, 3 );

  • [deleted] replied

    Hi,

    You have an option like that in our theme.

    See video: https://d.pr/v/bC7350

    Have a nice day!