2013-12-27

Place all labels on one post page

Well, so far there is no way to place label gadget in a post or a page, as I know. However, you can dedicate one page that and only that allows the label gadget to be shown. The Blogger's built-in label gadget will not be shown on rest posts or pages. Here is how to do it:

1. In Blogger > Layout, click Add a Gadget.

2. Find Labels gadget and place it at bottom of Blog Posts, and save it. It is suggested to disallow the comment for that page.

3. Go to Dashboard > Template > Edit HTML.

4. Move mouse to HTML code and click anywhere, then press Ctrl and F in your keyboard to search the label gadget. If you have not change its name, it should be called "Labels".

5. Find codes "<b:includable id='main'>".

6. Place codes just below it: "<b:if cond='data:blog.url == "URL of the page"'>" (Contents in blankets only). Please the URL of the page you want to labels to be shown.

7. In same section, find codes "</b:includable>".

8. Place codes just abovt it: "</b:if>" (Contents in blankets only). After that, it would be looked like:
<b:widget id='Label2' locked='false' title='Labels' 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>

9. Save template.

No comments:

Post a Comment

Top