Widgets only View on the homepage

·
By default, if we install a widget ad for example, counter image, images, etc. are usually the widget will appear on every page of the blog, as you can see on this blog. But if you want to display widgets on the page specific ads on the homepage and archives only post on the page then follow the tutorial below!

How to display the widget only on homepage

Usually if you add a new page element, you usually do so in a way like dashboard »Layout» Add a Page Element. But this way then installed a new widget that will appear on all pages, and if you want the widgets are only displayed on the homepage here's how:


Go to the Edit HTML tab ago a check on any posts on the small box 'Expand Widget Templates'!

Note: Usually, the code in the widget template will begin with a code like this:

<b:widget id='Label1' locked='false' title='Title' type='Label'>



press CTRL + F to find label your widget,..
Insert this code <b:if cond='data:blog.url == data:blog.homepageUrl'> after <b:includable id='main'>


Do not forget to input the code closing tag </b:if> the code before </b:includable>. And Save



Related Article for this post :

0 comments:

Post a Comment

Read other Post

Label Cloud

Guest Books

My Stats!

My Popularity (by popuri.us)
Check Page Rank