This content is likely not relevant anymore. Try searching or browse recent questions.
How to make this <b:if> works? 1 Recommended Answer 21 Replies 2 Upvotes
1 Recommended Answer
$0 Recommended Answers
Last edited 8/4/19
I write the code below on the post:

<div class=disclaimer>lorem ipsum</div>

And I'm trying to hide that part when people seeing it from this url  "blogname.blogger.com/search/label/label_name" by adding this <b:if> below:

<b:if cond='data:blog.searchLabel'>.disclaimer{display:none !important;}</b:if>

Somehow that <b:if>  is interpreted wrong. It doesn't only hide that part when displaying it by label but also when displaying it by the post itself. Did i miss something?

row #360 -> #373 on this screenshot:

All Replies (21)
Hello Klistrik,
insert this conditional tag into the template source code -> Theme tab -> edit HTML -> paste before </head> or after </b:skin>
marked this as an answer
That is conditional tag.
Try this:
<b:if cond='data:blog.searchLabel == "disclaimer" '>.disclaimer{display:none !important;}</b:if>
Sorry for later, I see that your q is about searching labels page. So this text is not for you :)
But this is not what do you wanna do. Simple - bad practice because you load html for page which do not belongs to.
You can programming with wrap around block which you do not need to be displayed on specific labeled page:

<b:if cond='!(data:blog.searchLabel == "disclaimer")'>
...some html...
Last edited 8/4/19
marked this as an answer
And I see now.
Disclaimer is static page?
Why not?
marked this as an answer
None of these tags will work if you put them in the post editor. You must paste this in the template code.
marked this as an answer
Hi WebLove.PL & Soraya Lambrechts,

This question has been solved when you gave a good clue. I just need to make it fit a little bit.

Sorry I thought my reply has been posted but when i checked again it wasn't there. Thanks for your attention. It was really a great help :)
marked this as an answer
This question is locked and replying has been disabled.
Discard post? You will lose what you have written so far.
Write a reply
10 characters required
Failed to attach file, click here to try again.
Discard post?
You will lose what you have written so far.
Personal information found

We found the following personal information in your message:

This information will be visible to anyone who visits or subscribes to notifications for this post. Are you sure you want to continue?

A problem occurred. Please try again.
Create Reply
Edit Reply
Delete post?
This will remove the reply from the Answers section.
Notifications are off
Your notifications are currently off and you won't receive subscription updates. To turn them on, go to Notifications preferences on your Profile page.
Report abuse
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
This reply is no longer available.
You'll receive email notifications for new posts at
Unable to delete question.
Unable to update vote.
Unable to update subscription.
You have been unsubscribed
Unable to delete reply.
Removed from Answers
Marked as Recommended Answer
Removed recommendation
Unable to update reply.
Unable to update vote.
Thank you. Your response was recorded.
Unable to undo vote.
Thank you. This reply will now display in the answers section.
Link copied
Unable to lock
Unable to unlock
Unable to pin
Unable to unpin
Unable to mark
Reported as off topic