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