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 | 13 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!".

13 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. HP Wireless Printer Setup

    Connecting a printer over a USB cable is pretty easy. But connecting a wireless printer can become very challenging quite often. Follow the HP wireless printer setup process to install it in no time.

    1. Take the printer out of the box and remove all tapes from it before starting.
    2. Plug in the power cord, turn on the printer and install the print cartridges. Allow your printer to complete its startup routine, which includes printing of an alignment page (if applicable).
    3. Go to the manufacturer's website and download drivers for your printer model.
    4. Install the drivers and follow the instructions during hp wireless printer setup process.
    5. In the meantime, go to printer's control panel and use wireless printer setup wizard.
    6. Identify your wifi network and connect the printer to it using its correct credential.
    7. Complete the wireless printer setup process by connecting to your printer model as it would appear during installation.

    For more detailed information visit: https://mchelperprintersupport.com/hp-wireless-printer-setup/



    hp wireless printer setup

    ReplyDelete
  9. Canon printer support phone number

    Canon wireless printer setup is very easy if compared with other available printers in the market. In case of any problem or confusion, canon printer support phone number is easy to get from the supplied manual. Follow canon printer setup process to install canon wireless printer.

    1. Take the printer out of the box and remove all tapes from it before starting.
    2. Plug in the power cord, turn on the printer and install the print cartridges. Allow your printer to complete its startup routine, which includes printing of an alignment page (if applicable).
    3. Go to the manufacturer's website and download drivers for your printer model.
    4. Install the drivers and follow the instructions during canon wireless printer setup process.
    5. In the meantime, go to priter's control panel and use wireless printer setup wizard.
    6. Identify your wifi network and connect the printer to it using its correct credential.
    7. Complete the wireless printer setup process by connecting to your printer model as it would appear during installation.


    For more detailed information visit: https://mchelperprintersupport.com/canon-printer-setup/



    canon printer support number

    ReplyDelete
  10. Pogo.com/sign in problems

    Check for correct User Name or Screen Name. Most of the time we rely on the browser’s auto-complete feature and select wrongly entered screen name in the past.
    Passwords are case sensitive. Therefore, always check the letter’s cases of the entered password. If possible, type the password as you use in a notepad and then copy and paste the letters in the password field. Below is a list of things you should always check before entering into troubleshooting.
    1. If any of your family member shares the same account, ask them if they might have changed the screen name or password.
    2. Look into your email inbox to get the actual screen name when you had registered with Pogo
    3. If you find any point relevant to your case, you can go to the article explaining how to reset password of your Pogo account and follow all the steps carefully to reset your pogo account password.


    For more detailed information visit: https://pogo-supportcenter.com/2020/04/01/fix-pogo-sign-in-issue/



    pogo.com/sign in problems

    ReplyDelete
  11. 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
  12. '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
  13. 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