I want to display Blogger widget only on label pages. I search on Google, but haven't found any way to do it. How to do it?
To display widget in all label pages use this condition
<b:if cond='data:blog.searchLabel'>
<!-- all label pages -->
</b:if>
To display widgets in a specific label page
<b:if cond='data:blog.searchLabel == "foo"'>
<!-- for label 'foo' -->
</b:if>
For All Label's page your code will be:
<b:if cond='data:blog.searchLabel'> <!-- HERE YOUR WIDGET CODE --> </b:if>
For Specific label's pae your code will be:
<b:if cond='data:blog.searchLabel == "ExampleLabel"'> <!-- HERE YOUR WIDGET CODE --> </b:if>
your code widget code only run if all label page or specific label page.
Hope I will help you. Waiting for your FeedBack. Thanks :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.