Showing Gadgets in Specific pages

If you want to show a specific gadget in a Gadget in Specific pages , there is a way to do that. Now you may think , why should i hide my gadgets in some pages. Now here is the reason. if you are using tons of gadgets , it may slow down you blog's loading time. Specially if you are using Flash gadgets. So , hiding them in posts and showing them in the home page is a cool trick to boot up your blog's loading speed.

First of all , decide which gadget should you hide. It may be a Flash gadget or a Image gadget or any thing.Make your you have provided a name for it. I means, in the visitors gadget , you may have given a name as 'Visitors'.


Now, This trick will help you to show your gadget only in home page
Edit your Template and Search under ( press 'Ctrl' + F to open your browser's search box) that name.

And keep in mind , that if you have used any sign , marks like these , ' . < > " , you can't search them, just change them to another name without those marks temporary and search.

Now you will find some code lines as


<b:widget id='HTML13' locked='false' title=' Your Gadgets Name here ' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == "index"'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>

<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>


Now paste these code lines


( <b:if cond='data:blog.pageType == "index" '> , </b:if> )


as shown below


<b:widget id='HTML13' locked='false' title=' Your Gadgets Name here ' type='HTML'>
<b:includable id='main'>


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


<b:if cond='data:blog.pageType == "index"'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>

<b:include name='quickedit'/>


</b:if>


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


Now follow the Safety Saving Steps.

And



If you want to show your gadget in all post pages but not in the home page , use


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


code line instead of using


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


If you want to show your gadget in a specific page only , use code line


<b:if cond='data:blog.pageType == " Paste your Page's URL here " '>


instead of using


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


And also , remember that even though the gadget is hidden , you may see some thing like this...



feedburner

Every New lesson , directly to your Mail Box .....

2 comments:

Yanaa_drcronic92 said...

i dont understand . . . ):

Gery goofy said...

nice ....

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

The Word Validation image has been removed and no need to Sign In. So don't be lazy ..........

 
This blog sucks under Internet Explorer.

Buy me a Coffee


Powered By

Latest Site News


Animated 3D Dock removed in order to speed up loading time and to help IE users.

This site will be come up with a DOMAIN name soon.

Link and Win competition will start as soon as the Domain name added. Join with us. You could be the winner.

Site Info

since 2009 April

Submit a Lesson

Visitors

of Visitors read Pages.

Lessons by DragonD | Template by Simran | Logo by lahirulcd | Temaplate redesigned by DragonD| Icons by DryIcons.com | Licensed under CC license Creative Commons License