Breaking News
Loading...
Wednesday 22 May 2013

How Display Gadgets on only Home Page, Static Pages, Posts Pages or Index Pages

Display Gadgets on only Home Page, Static Pages, Posts Pages or Index Pages
In this post i will be able to give an excellent blogger trick with that you'll show the gadgets on your required address, whether or not its Blogger Home page or Post pages or Static pages or Index pages or perhaps on any specific post or page.

There will be varied reasons that you will not wish to show the widget on each sub-domain of your diary. Like if you accessorial a LinkWithin widget to your diary and do not wish to show it in Home pages too. Or if {you wish|you would like|you wish} to show a Welcome Message on the house Page victimisation HTML/JavaScript widget and do not want it to be displayed elsewhere. Or for the other reason then this trick would be of nice use to you.

First of all allow us to learn the way to grasp the Widget ID of the widget that you simply wish to figure with.

Note: If you've got named your widget then you will skip this step. for a few reasons you may haven't named your widget then follow this step.
  • From your Blogger Dashboard go to Layout
  • Click on Edit option of the gadget.
  • The Edit Window of the gadget will pop up. Go to the address bar of this Window.
  • You will find an address similar to this:

http://www.blogger.com/rearrange?blogID=1539913304115984984&action=editWidget&sectionId=sidebar-right-1&widgetType=HTML&widgetId=HTML9

  • So here HTML9 is the Widget ID.

1. Now To Display The Gadget Only On Home Page.
  • From your Blogger Dashboard go to Template.
  • Click on Edit HTML and check the Expand Widget Templates option above.
  • Press Ctrl+F and search your Widget ID (ie HTML9 here) OR search the name of your gadget if your gadget has a name. You will see a section of codes similar to this:

 
 
   

 
 
   
 

 

  • Note: The widget code may vary with respect to the Widget. For example the Follower Widget.
  • Now add two pieces of code given in bold red exactly in the position as you can see in the section of code below:

 
 
   

 
 
   
 

 

  • Make sure you have it added correctly. Then save your template.
  • Note: For more desired customization, in the above code you can change == (equal to operator) to != which means "not equal to".

2. To Display The Gadget Only On Post Pages
  • Follow the same procedure as in displaying the gadget on home page but this time add these two pieces of code given in bold red exactly in the position as you can see in the section of code below:

 
 
   

 
 
   
 

 

  • Make sure you have it added correctly. Then save your template.

3. Similarly To Display Only On Static Pages.
  • Following the same procedure use this piece of codes  in the location as mentioned earlier :


THE HTML CODE GOES HERE BETWEEN THE TAGS

4. To Display On Everything (home page, labels pages, archive pages) Except Post Pages.
  • Following the same procedure use this piece of codes  in the location as mentioned earlier :


THE HTML CODE GOES HERE BETWEEN THE TAGS

5. To Display On Page Of The Specific Post Or Specific Static Page
  • Following the same procedure use this piece of codes in the location as mentioned earlier:


THE HTML CODE GOES HERE BETWEEN THE TAGS

Add these codes exactly in the position as mentioned in the Steps.
You can do this with as many items in your sidebars as you like and with any gadgets, if you need extra help you only need ask in the comments.

3 comments:

 
Toggle Footer