Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2315732
Link to feature image
Closed

Comments

  • heatherpainchaud started the conversation

    I would like the featured photos on my homepage link directly to the specific blog post but I cannot find where to customize this.  I've reviewed the forum and not found an answer.

  •  2,699
    PenciDesign replied

    Hi,

    Unfortunately, currently this theme doesn't support for this feature.

    I just can recommend for you a plugin help you can modify your post URL to another URL.. It's plugin Page Links To

    After installed this plugin, go to edit a post > scroll down and you can see option for custom link for that post.

    It will modify the link for that post when you click on title or featured image.

    Best Regards,

    PenciDesign

  • heatherpainchaud replied

    Could I add this code?  

    function wpb_autolink_featured_images( $html, $post_id, $post_image_id ) {
    $html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_the_title( $post_id ) ) . '">' . $html . '</a>';
    return $html;
    }
    add_filter( 'post_thumbnail_html', 'wpb_autolink_featured_images', 10, 3 );

  •  2,699
    PenciDesign replied

    Hi,

    That code can't be change anything... Because that code will auto add post URL to featured image. It can't be custom URL for specifict featured images.


    Best Regards,

    PenciDesign