• Adsense
  • Blogger
  • WordPress
  • Social Media
  • SEO
  • Tips
  • Offbeat
Reading: Essential Conditional Tags For Blogger
Share
BlogbeastBlogbeast
Aa
Search
  • Adsense
  • Blogger
  • WordPress
  • Social Media
  • SEO
  • Tips
  • Offbeat
Copyright © 2023 BlogBeast. All Rights Reserved.
bloggertips

Essential Conditional Tags For Blogger

admin By admin 08/27/2022 1 Min Read
SHARE

There are a few tricks to hide elements from the blogger blog, You can hide elements in the homepage, posts, and static pages by adding conditional tags.

here are some essential conditional tags for you to hide your elements

Showing widget only on the home page:

<b:if cond='data:blog.url == data:blog.homepageUrl'>
Your_widget_code_here
</b:if>

View the widget only on post pages:

<b:if cond='data:blog.pageType == "item"'>
Your_widget_code_here
</b:if>

Displays widgets only on specific pages:

<b:if cond='data:blog.url == "URL of the page"'>
Your_widget_code_here
</b:if>

Note: Change your URL in the address you want.

Hiding widgets only on specific pages:

<b:if cond='data:blog.url != " URL of the page "'>
Your_widget_code_here
</b:if>

Displaying widgets on the static page:

<b:if cond='data:blog.pageType == "static_page"'>
Your_widget_code_here
</b:if>

Hide the widget on a static page:

<b:if cond='data:blog.pageType != "static_page"'>
Your_widget_code_here
</b:if>

widget displays only on archive pages:

<b:if cond='data:blog.pageType == "archive"'>
Your_widget_code_here
</b:if>

After you add the conditional tags above, save the template and view the results. This conditional tags not limited to the widgets, with the help of conditional tags you can wrap the other elements such as Script, CSS, and HTML.

You Might Also Like

How to make a Biolink for Instagram on Blogger

How to add a cookie consent notification to Blogger

Difference between Blogger and WordPress | Best blogging platform in 2022

How to Permanently Delete Snapchat Account

How to fix bad corrupt memory card

Share this Article
Facebook Twitter Copy Link Print
By admin
Follow:
Success is no accident. It is hard work, perseverance, learning, studying, sacrifice and most of all, love of what you are doing or learning to do.
Previous Article How to create a custom permalink structure for your WordPress site and Why
Next Article How to Add Links To Detect Adblock On Blogger Blog Using JavaScript
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

235.3k Followers Like
69.1k Followers Follow
56.4k Followers Follow
136k Subscribers Subscribe

Latest News

What is blogging and how to make money from it?
What is blogging and how to make money from it?
How To Make Money from Blogging
8 Fastest ways on How To Make Money from Blogging
What is wordpress plugin
20 Best WordPress Plugins for your Websites in 2022
How to Uninstall Wordpress Plugins manually
How to Uninstall WordPress Plugins completely with Shortcode

You Might Also Like

How to make a BioLink for Instagram in Blogger
blogger

How to make a Biolink for Instagram on Blogger

4 Min Read
bloggerwidgets

How to add a cookie consent notification to Blogger

4 Min Read
bloggerwordpress

Difference between Blogger and WordPress | Best blogging platform in 2022

9 Min Read
social mediatips

How to Permanently Delete Snapchat Account

7 Min Read

Always Stay Up to Date

Follow our Facebook to get our newest articles instantly!

We provide tips, tricks, and advice for improving websites and doing better search.

Quick Links

  • About
  • Disclaimer
  • Privacy Policy
  • Write for us

Resouce

  • About
  • Disclaimer
  • Privacy Policy
  • Write for us

Get the Top 10 in Search!

Looking for a trustworthy service to optimize the company website?
Request a Quote

Removed from reading list

Undo
Welcome Back!

Sign in to your account

Lost your password?