- Sign in to blogger.
- First Backup your blogger template.
- Go to Layout.
- Add a HTML/Java Script gadget that you want to make appear only in homepage of your blog and title it as homeonly(for qucik reference)
- Go to Dashboard > Template > Edit HTML.
- Press Ctrl + F and find homeonly. You will see a code as follows.
<b:section class='main' id='main' preferred='no'>
<b:widget id='HTML1' locked='false' title='homeonly' 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> - Replace the code highlighted in yellow above, with the following codes respectively.
- <b:if cond='data:blog.pageTitle == data:blog.title'><data:title/></b:if>
- <b:if cond='data:blog.pageTitle == data:blog.title'><data:content/></b:if>
- Now the code in Step 5 will look as below.<b:section class='main' id='main' preferred='no'>
<b:widget id='HTML1' locked='false' title='homeonly' type='HTML'>
<b:includable id='main'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><b:if cond='data:blog.pageTitle == data:blog.title'><data:title/></b:if></h2>
</b:if>
<div class='widget-content'>
<b:if cond='data:blog.pageTitle == data:blog.title'><data:content/></b:if>
</div> - Save Template. You got it!
- If you want to make a gadget appear in a page you wish, for example, To make a gadget appear only in the page of this post, modify the above condition as below,
<b:if cond='data:blog.pageTitle == "How to blog?: How to make a gadget appear only in Home page or the page you wish?"'>
- You can see such a widget in the page of this article itself.
- Any widget can be made with the following condition!
Read: Gadget in mobile home page alone
This is very attention-grabbing, You’re an excessively professional blogger. I have joined your feed and look forward to in the hunt for extra of your excellent post. Additionally, I have shared your web site in my social networks
ReplyDeleteThis is very attention-grabbing, You’re an excessively professional blogger. I have joined your feed and look forward to in the hunt for extra of your excellent post. Additionally, I have shared your web site in my social networks
ReplyDeleteI'd like to remove my Blog Achive and put it on another Page. Is there a way to do this?
ReplyDeleteYeah! You have a way! Using the update of this article. Start discussion in ask questions page so that it will be helpful for us to help you even more clearly.
DeleteThanks! but, Be careful that, you don't post spam links further.
ReplyDelete