Widgets on any blog are the major cause of your popularity around the blog community and helping your visitors to follow you on social media and subcribe by email and also a blog with no widgets look so bad and even not trustable.The more your blog look professional the more you get loyal visitors but the content is also necessary.There are many awsome and good looking widgets around but if you add all of them on a single page your blog will look like a piece of shit and they can kill the load speed of your blog.
So always divide them on different pages according to their needs but most of new blogger think that nothing happens maybe they don`t know that`s the reason why their blog are not growing up so here i am to explain some simple and time consuming techniques that how you can restrict your widgets on different pages according to your needs.

Home Page

First of all we start from home page the main page of your blog where the visitor come first you can place any welcome message or any important note for your visitors just do like above.You can add the code any where in the blog source code.

<b:if cond='data:blog.canonicalUrl == data:blog.canonicalHomepageUrl'>
Your Widget Code</b:if> 
If  you want the same widget to appear on all the other pages but not on the homepage just do like above

<b:if cond='data:blog.canonicalUrl != data:blog.canonicalHomepageUrl'>
Your Widget Code

Post Page

Secondly here comes the post page where all the contents of your post lies you can either add subcribe form or any other widget regarding to the post e.g "Subcribe If You like The Post"

<b:if cond='data:blog.pageType == &quot;item&quot;'> Your Widget Code </b:if>

Want the same widget on all the other pages except the home page and post page then do like above

<b:if cond='data:blog.pageType != &quot;item&quot;'> Your Widget Code </b:if> 

Static Page

Here comes the static pages where you put your contact form, table of contents, or any widget which is not regarding to posts then do like above

<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
Your Widget Code</b:if> 

Display the same widget on all other pages except the static pages

<b:if cond='data:blog.pageType != &quot;static_page&quot;'> Your Widget Code Here </b:if> 

Particular Url

You can also restrict your widgets just on some  particular url`s but they should be on your blog not on your subdomain for that you want to add the same script to your subdomain page

<b:if cond='data:blog.canonicalUrl == &quot;Particular Page Url&quot;'> Your Widget Code Here</b:if> 

For multiple url`s just add the other url just below the fist url

Display the same widget on all pages but not on the declared url`s just do like above.

<b:if cond='data:blog.canonicalUrl != &quot;Particular Page Url&quot;'>Your Widget Code Here</b:if>

That`s All

From the Author`s Desk > > >

  • Are you happy with this customization?
  • Is there something else i can add in these codes? just let me know in comments
  • How are you using your widgets are you dividing them?
  • Is there any better techniques? so let me know in comments
All the comments will be appreciated maybe replyed late cuz i am seriously busy these days in my studies.
                              Till Then stay blessed & mottivative and happy customization