May 29, 2017

Important Blogger Conditional Tags For SEO

If you use blogger and care about your website's SEO, if you want your site to appear on Google search then you need to make use of conditional tags to make your pages responsive and load fast. Here are important tags you would need to achieve that aim and make your site search friendly.

How to set blogger SEO

Useful Blogger Conditional Tags

1. Tag to Show Widget or Script Only on Homepage

<b:if cond=’data:blog.url == data:blog.homepageUrl’> Your Section or Widget portion here</b:if>
This is used to hide any anything from other pages and make it appear on homepage, you can use this to hide your sidebar, header, footer etc and allow it to display only on homepage.

2. Tag to Show Widget Or Script Only On a Particular Page
<b:if cond=’data:blog.url == “URL of the page“‘> Your Section or Widget portion here</b:if>
This allows you show anything only the page you feel it's required and useful, edit and paste the URL of the page you want the script to show as highlighted and save.

3. Tag to Show Widget or Script Only on Post and Pages
<b:if cond=’data:blog.pageType == “item”‘> Your Section or Widget portion here</b:if>
Use this tag to hide anything​ from homepage, archive and search pages and have it appear on post and static pages only.

4. Tag to Show Widget or Script Only on Archive Pages
<b:if cond=’data:blog.pageType == “archive”‘>
 Your Section or Widget portion here
</b:if>
If you want a widget to appear only on archive pages and hide it from other pages then make use of the conditional tag above.

5. Tag to Show Widget or Script Only on Label Pages
<b:if cond=’data:blog.searchLabel’> Your Section or Widget portion here</b:if>
If you want a widget to appear only on label pages and hide it from other pages then make use of the conditional tag above.

6. Tag to Show Widget or Script Only on Post and Static Pages
<b:if cond=’data:blog.url == data:post.url’> Your Section or Widget portion here</b:if>
Use this to make any widget or script visible on post and static pages while invisible on every other page.

7. Tag to Show Widget or Script Only on Static Pages
<b:if cond=’data:blog.pageType != “static_page”‘> Your Section or Widget portion here</b:if>
This tag is used to show any portion or widget on static pages only, the widget won't be displayed on a non static page.

8. To Show Collectively on Pages e.g homepage, archive, label, static pages
data:blog.pageType == “index”
9. To Show Only on Search Results Pages
data:blog.searchQuery
10. To Show Only on First Post
data:post.isFirstPost
11. To Show Only on 404 Pages
data:blog.pageType == “error_page”
12. To Show On Multilevel Pages
<b:else />
13. To Reverse Blogger Tag
<b:if cond=’data:blog.url == data:post.url’>  
</b:if>
 To reverse this condition replace == with != 

Guide To Use Blogger Conditional Tags

Below is an example of a script, your conditional tag should be pasted on the highlighted portion with text "Your condition here"
<b:if cond = ‘Your Condition here‘>Your Section or Widget portion here</b:if>
The html code should look like the script below if you added the show only on homepage tag correctly.
<b:if cond = ‘data:blog.url == data:blog.homepageUrl‘><div class=”name”></div>OR
<b:widget id=”name” locked=”false” title=”name” type=”HTML”></b:widget></b:if>
Free free to ask any question and get replied as soon as possible.


SHARE THIS

Author:

Confy Scenty is a Unique Tech Blogger who's aim is to make an impact in Technology. Tech is my passion, it is my calling and am always happy to answer to it.

4 comments:

  1. This will be the perfect blog for anyone who desires to discover about this topic and I feel pleasure to view your website. Thanks for sharing such an informative information in a gentle manner! Keep it up and all the best. regardsFILMYWAP

    ReplyDelete
    Replies
    1. Wow am flattered! Thanks for the compliment Soniya.

      Delete
  2. This is just the right post i've been looking for... thankfully i happen to stumble upon this very informative post...
    thanks for taking out time to blog on these "conditional tags".. i am most grateful ..and will surely recommend your blog

    ReplyDelete
    Replies
    1. Wow! Am happy to hear that, thank you pal.

      Delete

We Love Comments.......

Click +1 To Follow Us On Google+