By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
BlogbeastBlogbeast
  • Adsense
  • Blogger
  • WordPress
  • Social Media
  • SEO
  • Tips
  • Offbeat
BlogbeastBlogbeast
Search
  • Adsense
  • Blogger
  • WordPress
  • Social Media
  • SEO
  • Tips
  • Offbeat
© 2026 Blogbeast. All rights reserved.
BloggerTutorials

Essential Conditional Tags For Blogger

Last updated: 27/08/2022 6:03 PM
By admin

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.

Read More

Difference between Blogger and WordPress | Best blogging platform in 2022
How to Add Links To Detect Adblock On Blogger Blog Using JavaScript
How to Add Simple Countdown Timer Widget For Blogger
How to create a free blog on Blogger in 2022 – Blogging tutorial for beginners
Show/Hide widgets on mobile
Share This Article
Facebook Email Print
YoutubeSubscribe

Popular Posts

What is blogging and how to make money from it?
Offbeat

What is blogging and how to make money from it?

How To Make Money from Blogging
Monetization

8 Fastest ways on How To Make Money from Blogging

What is wordpress plugin
Wordpress

20 Best WordPress Plugins for your Websites in 2022

How to Uninstall Wordpress Plugins manually
Wordpress

How to Uninstall WordPress Plugins completely with Shortcode

What is wordpress plugin
Wordpress

What is wordpress plugin ? How to install WordPress plugin in 4 easy methods?

You Might Also Like

Blogger

How to Install Responsive Sitemap with Labels in Static Page on Blogspot Blogger

By admin
18/08/2019
Blogger

How to create responsive sitemap static page in blogger 2020

By admin
03/09/2020
Blogger

How To Completely Install A Blogger Template

By admin
09/09/2019
BloggerJavascriptWidgets

How to add Simple Random Post Widget For Blogger

By admin
01/02/2022
Tutorials

Top free websites for fast indexing of blogs or websites

By admin
01/09/2020
BloggerTutorials

Create Privacy Policy Page For Blog To Get Google Adsense Approval

By admin
01/02/2022
Blogbeast

Welcome to BlogBeast, the place where blogging meets earning,and ideas turn into something big.

Quick Links

  • About
  • Contact Us
  • Subscribe

Useful Links

  • Disclaimer
  • Privacy Policy
  • Sitemap
© 2026 Blogbeast. All rights reserved.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?