Generally Widgets/Gadgets that are created on home page will also seen in all post pages.This is a little bit annoying.So,if we can display widgets only in our required pages,it will be very happy 4 us.
Goto Layout->Edit Html->Click On Expand Widget Template
Search for your required widget code.Just type your widget name that you have given when creating the widget.
In my Case I Used "Get Free Email Alerts 4m Us".
So when u get the code.Add the following code to display widget on home page only.
<b:if cond='data:blog.url == data:blog.homepageUrl'>
The Final Code after after modifying should look like this.Add the 2 codes marked in red to your code.
Also,if u want to display widgets in all pages except in home page.Then,add below code instead of above one.
<b:if cond='data:blog.pageType == "item"'>
Or You can also display widget in particular page.For that add below code instead of above one.
<b:if cond='data:blog.url == "blog post URL"'>
Liked our post,then subscribe us.
Dont forget to leave comments.
Goto Layout->Edit Html->Click On Expand Widget Template
Search for your required widget code.Just type your widget name that you have given when creating the widget.
In my Case I Used "Get Free Email Alerts 4m Us".
So when u get the code.Add the following code to display widget on home page only.
<b:if cond='data:blog.url == data:blog.homepageUrl'>
The Final Code after after modifying should look like this.Add the 2 codes marked in red to your code.
Also,if u want to display widgets in all pages except in home page.Then,add below code instead of above one.
<b:if cond='data:blog.pageType == "item"'>
Or You can also display widget in particular page.For that add below code instead of above one.
<b:if cond='data:blog.url == "blog post URL"'>
Liked our post,then subscribe us.
Dont forget to leave comments.
0 comments:
Post a Comment