Mobile app version of vmapp.org
Login or Join
Pierce454

: If blogger thumbnail name is x, display y? I'm new to editing blogger themes and hope someone that recognizes <b: if> code can help out. This is what I want to learn and put into my

@Pierce454

Posted in: #Blogger #Blogspot #Mediatemple

I'm new to editing blogger themes and hope someone that recognizes <b: if> code can help out.

This is what I want to learn and put into my blogspot theme:

If a post has a specific thumbnail, or not found, display another image.

Something like this logic?

If thumb=='bad_picture_name' .or. thumb=='another_bad_pic_name'

Display good_picture

Elseif thumb==missing

Display transparent_gif-thumb

Else

Display thumb

Endif

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Pierce454

1 Comments

Sorted by latest first Latest Oldest Best

 

@Harper822

Your code should be like this : (works with new themes)

<b:if cond='data:post.featuredImage'>
<b:if cond='data:post.featuredImage == "img-src" or data:post.featuredImage == "img-src"'>
Display good_picture
<b:else/>
Display thumb
</b:if>
<b:else/>
Display transparent_gif-thumb
</b:if>


With old templates (version 2) replace featuredImage with firstImageUrl

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme