How to add thumbnails under post title on homepage of the blog


#1

Hello I’m a blogger at Naman’s Board. www.namanboard.com

On the main page in the post section you’ll see that the post are listed down with the post title and first few words from the post. I need the very first pics of the posts to appear below the post titles on the homepage as thumbnails and should be of the corresponding size and width.

Thanks in advance. Feel free to ask any question for futher understanding my request.


#2

Well, I am not expert at all, but I got email, you have invited to me. So I found this solution.

This code can fetch image from your blog post.

<b:if cond='data:post.thumbnailUrl'>
<img expr:src='data:post.thumbnailUrl'/>
</b:if>

You can paste this code, above or below to this code

<b:if cond='data:post.snippet'><data:post.snippet/></b:if>

May be you will find out two data:post.snippet , one for mobile and one for desktop template. so try one by one. :slight_smile:


#3

thanks but it didn’t work. Btw did you like my blog?


#4

Use any auto read more script to do your job

Javascript Version

Non Javascript version


#5

Yep, It’s good and unique. Keep it continue :grinning:


#6

Thanks for your help. but I already have post snippets on my blog. Is there nothing which I can add to the existing code to have the post thumbnails?


#7

You can message me template so that I can check what the the problem is going on