Due to some circumstances, this blog is now up for sale, for more enquires contact: Plushista@gmail.com
RealcomBiz
Pin It

Show Or Hide Blogger Widget On Homepage, Post Pages, Static Pages, Or On Selected Pages

by Unknown | Saturday, February 02, 2013 | 10 Comments

It is always important that you control how widget function in your blog, because their are some widget that are suitable mostly for homepage only while some makes sense post pages, archive pages, and so on. Most frequently asked question by my blog readers is that how can they hide a particular widget (especially recent post widget) from displaying in homepage in other to reduce the load time of their homepage, while some are interested in showing a widget on only homepage. So if you are also interested in controlling your widget performance, then this tutorial will trash out your worries.
We will be using different conditional tag to selectively display widget on any preferred pages.


How To Show Widget Only On Homepage

Use the following conditional tag to show widget on homepage only.

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

WIDGET CODE HERE

</b:if>

How To Hide Widget On Homepage

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

WIDGET CODE HERE

</b:if>

How To Show Widget Only On Static Pages

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

WIDGET CODE HERE

</b:if>

How To Hide Widget On Static Pages

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

WIDGET CODE HERE

</b:if>

How To Show Widget Only On Archive Pages

<b:if cond='data:blog.pageType == &quot;archive&quot;'>

WIDGET CODE HERE

</b:if> 

How To Hide Widget On Archive Pages

<b:if cond='data:blog.pageType != &quot;archive&quot;'>

WIDGET CODE HERE

</b:if> 

How To Show Widget On A Selected Post

<b:if cond='data:blog.url == "URL Of Selected Post"'>

WIDGET CODE HERE

</b:if>

How To Hide Widget On A Selected Post

<b:if cond='data:blog.url != "URL Of Selected Post"'>

WIDGET CODE HERE

</b:if>

How To Wrap Widget With The Conditional Tag

The conditional tag can be applied to any widget using the same procedure.
  • Go to your blogger dashboard
  • Click on Template > Edit HTML > Proceed (Mark/Tick Expand Widget Template)
Every widget has a code structure, but you can easily locate a widget using the widget title. Each widget code structure will look like the following:

<b:widget id='Widget-ID' locked='' title='Widget-Title' type=''>
<b:includable id='main'>


LARGE CODE


</b:includable>
</b:widget> 

Wrapping the widget with any conditional tag, the final result will look like the following:

<b:widget id='Widget-ID' locked='' title='Widget-Title' type=''>
<b:includable id='main'>
<b:if cond='data:blog.url == data:blog.homepageUrl'>

LARGE CODE

</b:if>
</b:includable>
</b:widget>

The conditional tag used above is just an example, you can choose any condition tag of your choice, and the same procedure applies to all.
Any queries or contribution/appreciation is highly welcome, and don't forget to share it with friends/followers.



Go Social:

Subscribe For Free Updates!

*Please confirm the email sent to your inbox after clicking "Sign Up!".

10 comments : Post Yours! Read Comment Policy ▼
PLEASE NOTE:
We have Zero Tolerance to Spam. Chessy Comments and Comments with Links will be deleted immediately upon our review.

  1. How to hide post images in homeapages.

    ReplyDelete
  2. I have different pages in my blog. I want to categorize posts for particular pages only and it should not show in home page. How I can do this?

    ReplyDelete
  3. On the off chance that you are a potential borrower, who as of now has a terrible record as a consumer, at that point it might bode well for you to settle on the no printed material payday credits as they don't require any check by the moneylender.
    Payday Loans San-diego

    ReplyDelete
  4. Ensure that you settle your advance manage a solid loan specialist. Hunting down a dependable source is a sorry bother with this credit arrange as the real hazard figure is on the loan specialist's side.
    Cash Advance

    ReplyDelete
  5. From time to time something startling comes up and we require some brisk money, and that is cash that can't hold up until the following payday. An auto title credit can be a way to give that snappy money that you require, and should typically be possible in one day or less.
    car title loans near me chicago

    ReplyDelete
  6. . This is the reason you ought to be careful about the promotions that are much of the time seen
    Cash Advance Chula-vista

    ReplyDelete
  7. Essentially convey your ID material to your neighborhood supplier and request an application. To spare time and assets, you might need to consider hunting down suppliers online - decrease the bother! Presently you're prepared to present the application and sit tight for your endorsement letter to touch base via the post office. usacheckcashingstore.com/corona

    ReplyDelete
  8. It's missing perplexing individuals concerning this issue, at any rate you sound like you hear what you're yielding! Thankful to you and continue to make those gifted posts.
    If a printer has a problem like HP Printer Activation Error Code 30, our printer technicians can fix the printer problem by calling our free toll number or visiting our site immediately. Thank you!!

    ReplyDelete
  9. 'I'm highly impressed by the piece of thoughts you have shared on this portal. Assignment Achievers is a leading online assignment help provider worldwide. We are helping students with their assignments, Dissertation, Homework Writing, Case Study Writing, Essay Writing etc.

    ReplyDelete
  10. Acetylene, which is better known by its systematic name, ethyne, is a well-known chemical compound.

    acetylene pricing

    ReplyDelete

Recent Posts

Let's Connect

Site Links

Copyright © 2014 RealcomBiz. All Rights Reserved.
Powered by Blogger