Skip to main content

Hide and Show Blogger Widgets in Specific Pages of Blogger

Blogger widgets are shown all of the pages of blogger blog in default when you add widgets in your blogger. But this may cause bad looks of your blogs. If you want a smart blog which has all the features not repeating more than once, you should learn to show or hide blogger widget in particular pages that you want to.

You can apply a conditional tag which helps you to show or hide any widget in specific pages. Basically, bloggers try this method to make their design looks better and they also apply this method to make blogger design adsense friendly. If you are adsenser, you must know adsense allows 3 ads placement in a page. So that if you put 3 ads through widget then it will be seen in all the pages as same. However, you can apply show hide widget that help you to place adsense ads in different style in different pages.

Particularly, there are 4 styles pages in blogger and they are post page, home page, archive or label pages and static page. Therefor, you can apply this hide and show technique only on these pages.

In the below steps, we used advertisement widget to show and hide in specific pages of blogger.

How to hide and show blogger widget in blogger post pages?

Only show advertisement in post pages

Only hide advertisement widget in post pages
As shown in the above pictures, you have to add a conditional code after find widget that you want to hide or show in post pages, Use <b:if cond = 'data:blog.pageType = = " item "'> to show widget only in post pages and use <b:if cond = 'data:blog.pageType ! = " item "'> to hide widget only in post pages.

How to show and hide widget in homepage of blogger blog?

Show advertisement widget only in homepage
As shown in above picture, you have to add <b:if cond = 'data:blog.url = = data:blog.homepageUrl '> code in a widget which you want to show in home page only. 

And to hide a particular widget from homepage, you just add <b:if cond = 'data:blog.url ! = data:blog.homepageUrl '> code. Hope, this may help you to hide and show adsense in homepage of blogger also.

How to show and hide widget in static pages?

Now it is also easy to show widget only in blogger static pages. To apply this process you have to add <b:if cond = 'data:blog.pageType = = " static_page "'> code as shown in below figure. Here we used to show advertisement widget in static pages.
Show advertisement widget only in static page
Likewise you must put <b:if cond = 'data:blog.pageType ! = " static_page "'> code to hide advertisement widget from all static pages.

How to show and hide widget in label pages of blogger?
Likewise the above codes, or figure, we use <b:if cond = 'data:blog.pageType = = "archive"'> code to show particular widget in all blogger label pages which is also called archive page. And just use <b:if cond = ' data:blog.pageType ! = "archive"'> to hide widget from all archive pages. 

I hope, this can help you guys to keep looks of your blogger template much better. 


Popular posts from this blog

Kaun Banega Crorepati (KBC) C Programming Game - BIT First Semester

Many of you may remember and think about some past moment of your graduate time and collect all that past memories. Indeed, attending first class in bachelor level really gives some extra fun and joy. Actually, now I am not telling you about my story of first class of bachelor level. I am just going to share my first semester project of bachelor level.

By the way I am a student of IT field and I am now running in 6th semester of BIT program. In the first semester project, we had to develop some basic apps or game or anything that we did using C programming. In that semester, we learnt C programming which is a basic essential language to develop programming concept. Though it is a procedural language, it is known as the father of all other programming language.

Okay lets move towards our first semester project and that is KBC (Kaun Banega Crorepati). Although it does not have all characteristics of KBC of Mr. Amitabh Bachchan, we just tried to make a game like KBC including some featu…

"ar_orderby" Codeigniter Property Deprecated in Version 3

The latest version of the PHP framework Codeigniter version 3 was released 2 on 27 July, 2015. It upgraded its many features like security and authentication. But one thing that you should know some methods or functions or properties of previous version has also been excluded from the Version 3. Today, I am here for you to inform about a deprecated property of codeigniter and that is 'ar_orderby'.

Instead of  'ar_orderby', I found there another 'qb_orderby' property. May be 'ar_orderby' has been changed into 'qb_orderby'. But when Iuse 'qb_orderby', it did not work and there comes a fatal error ie system displays "can not access protected property". Yet, I have not found its solution.

Actually, there is a solution of deprecated property 'ar_orderby'. We often would use this property like following:-
if (!count($this->db->ar_orderby)) {
} Now instead of the above co… browser hijacker virus removed successfully

Oh my goodness, at last I got it. Yeah, I found the techniques to remove web browser hijacker virus. I do not claim that this will also work to you but I finally removed virus completely from my computer. I tried lots of techniques manually, but I did not find any good solution, then I got worried and formatted my laptop once. As I installed windows 8.1, again after 1 month later, I was searching for a crack for a software, somehow, a hijacker installed into my laptop, then all of my browser got hijacked by url. Then I determined to remove it. I started searching the tricks to remove it completely. I got several tricks but they did not solve my problem. However they are quite useful because those steps also must be applied while applying this tricks. So lets start step by step solution to remove hijackers completely from a PC/laptop.

Indeed, hijacker virus can not be remove by uninstalling your browser. If your uninstall your brows…