All About Blog Designing, Useful Tips and Tricks.
Show and Hide Widgets/Gadgets in Home/post/static/archive pages in Blogger
Once you activate any widget, in your blog, it will be displayed in all the pages by default, including your homepage.But what if you want a certain widget to appear only on a certain page or pages, can it be done? Yes You can do this easily using conditional tags.
first go to Blogger’s Dashboard > Design > Page Elements tab and add a “HTML/JavaScript” gadget. I prefer it because it will be easy for everyone to understand. Give it a unique title so that it does not match with any of the titles of other widgets added.
Go to Dashboard > Design > Edit HTML. Check the Expand Widget Templates check box on top right of the HTML window. Find your widget in the HTML by using Ctrl+F and entering the widget Id in the search box. Let’s say I have given the title for my widget as “Recent Comments”. After searching you will find the below snippets:
<b:widget id='HTML1' locked='false' title='Recent Comments' type='HTML'><b:includable id='main'><!-- 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:includable>
</b:widget>
It's the widget/gadget that you have added from Page Elements tab. All is left is to add conditional tags just below and above to hide the widget form specific pages or posts in Blogger. Let us see some examples:
To Show The Widget Only In HomePage
To Show The Widget Only In HomePage
Baca juga
<b:widget id='HTML1' locked='false' title='Recent Comments' type='HTML'><b:includable id='main'><b:if cond='data:blog.url == data:blog.homepageUrl'><!-- 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>
To Show Blogger Widget In Post Pages Only
<b:widget id='HTML1' locked='false' title='Recent Comments' type='HTML'><b:includable id='main'><b:if cond='data:blog.pageType == "item"'><!-- 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>
To Show The Widget In Any Particular Page
<b:widget id='HTML1' locked='false' title='Recent Comments' type='HTML'><b:includable id='main'><b:if cond='data:blog.url == "URL of the page"'><!-- 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>
To Hide A Widget Only In A Particular Page
<b:widget id='HTML1' locked='false' title='Recent Comments' type='HTML'><b:includable id='main'><b:if cond='data:blog.url != "URL of the page"'><!-- 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>
To Show Widgets Only In Archive Pages
<b:widget id='HTML1' locked='false' title='Recent Comments' type='HTML'><b:includable id='main'><b:if cond='data:blog.pageType == "archive"'><!-- 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>
To Show Widgets Only In Static Pages
<b:widget id='HTML1' locked='false' title='Recent Comments' type='HTML'><b:includable id='main'><b:if cond='data:blog.pageType == "static_page"'><!-- 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>
To Hide Widgets In Static Pages
<b:widget id='HTML1' locked='false' title='Recent Comments' type='HTML'><b:includable id='main'><b:if cond='data:blog.pageType != "static_page"'><!-- 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>
I Think that this information will help you to customize your blog !
1 comment
Label List
Add Beautiful Search Box in your blogger
(1)
Add Favicon icon to Blogger URL
(1)
Add Social Networking Sites Buttons beneath to Every Post (Blogger)
(1)
Add Table In Post
(1)
adsense
(1)
All Alt plus (+) keys
(1)
All Useful Shortcut Keys
(1)
Alt + Keys
(1)
Background Images
(1)
Blogger Gadgets
(1)
Blogger Help
(7)
Blogger Safety
(1)
Blogger Search Box-2
(1)
Blogger SEO
(1)
Blogger Tutorials
(5)
Blogger Widgets
(5)
blogging
(2)
Can I get original freecell back for windows 10?
(1)
Codes For Flip Text.
(1)
CSS
(1)
Customize Blog
(21)
Customize Blog. Meta Tag
(1)
Customize Feed Burner Notifications
(1)
Customize Feed Burner Settings
(1)
Customize Template
(2)
Discover More
(3)
Facebook
(3)
Facebook Tips
(10)
Feed Burner
(1)
Flip Text Generator
(1)
Footer
(1)
Free Cell Game
(1)
Free Image Hosting Sites
(1)
Gadget
(7)
Gadgets
(1)
Google Adsense Alternatives 2018
(1)
Hex Color Chart
(3)
HEX Color Code Generator
(1)
How to add flip text. Coding Tutorials
(1)
How to Add Link List of Post
(1)
HTML
(2)
HTML Image Link Code
(1)
HTML LINK
(1)
HTML/Java Script Alignment
(1)
Image Effects
(3)
Image Hyper Linked to External Site
(1)
Images
(1)
Link in Comment Box
(1)
List of HTML Tag
(1)
Marquee HTML CODE
(1)
Media.net
(1)
Old Free Cell Game XP
(1)
Old Solitaire Game.
(1)
Page Navigator
(1)
Recent Post Widget
(1)
REMOVE - SUBSCRIBE TO: POSTS (ATOM)
(1)
Remove Date Header From Blog (Blogger)
(1)
Remove Image Border (Blogger)
(1)
Resetting Free Cell
(1)
Scrolling Text Widget
(1)
Search Box Blogger
(1)
Shortcut Keys
(1)
Template Design
(1)
Whats app flip text
(1)
Widget
(1)
Windows Hack
(1)
Windows XP Game Free Cell
(1)
XML File Extension
(1)
This comment has been removed by the author.
ReplyDelete