Viewing 4 reply threads
You must be logged in to reply to this topic.
Is there an easy way to make the featured image in the blog post a clickable image when it’s a thumbnail? This way people simply click on the image to link to the news page instead of having to only click on the title of the article.
Hello,
Yes there is, but you will have to edit theme code. I can guide you with that. But i need to see a link of your blog page. So i can see what type of blog are you using.
Best regards!
The homepage where I want the link to be utilized on the thumbnail is https://xlnttint.com/, see Xlnt News section, and the blog page is https://xlnttint.com/blik-security-booth-2/
Thank you!
Hello,
Please go to file tower\vc_templates\latest_blog.php Find this line:
$output .= '<img src="'.esc_url(codeless_image_by_id(get_post_thumbnail_id(), '', 'url')).'" alt="'.$alt.'">';
and replace with this:
$output .= '<a href="'.get_permalink().'"><img src="'.esc_url(codeless_image_by_id(get_post_thumbnail_id(), '', 'url')).'" alt="'.$alt.'"></a>';
Save and refresh page. Let me know.
Best regards!
You must be logged in to reply to this topic.