02 April 2009

Showing only element in the front page

To install it in a blog is easy, we only add two lines of code on each page element in the add or inserted. Choose one of the elements that appear only in front page blog, I choose elements eg text and open the Template-> Edit html and do not forget to mark the box next to any posts smaller Expand Widget Templates. then search for any posts or code elements HTML1. After the meet and letakan add two lines of code in the position of the text as I give it color.

Example:



<b:widget id="HTML1" locked="false" title="" type="HTML">
<b:includable id="main">
<b:if cond='data:blog.homepageUrl == data:blog.url'>

<- Only display title if it's non-empty ->
<b:if cond="data:title != """>
</ b: if> </ b: if> </ b: includable> </ b: widget> <h2 class="title"> <data:title> </ data: title> </ H2>

<div class="widget-content">
<data:content>
</ data: content>
</ div>
</ b: if>

<b:include name="quickedit">

</ b: includable>
</ b: widget>



Remember, just add the code that only the second.

You need to know each add an element of the default blogger gave the name according to the elements. eg elements Html / javascript in Html Rename, elements in the Link List Name LinkList, text elements in the Name text, in the Label Name label. and so on.
And add each element of the same elements eg text, then the blogger name with Text1, Text2, Text3 ff. Html / javascript Html1 so, Html2, Html3 and so on.

Or so easy to find elements that we add, good brother to give the title on each element. Suppose for a list of elements liks or linklist to the title and so bloggrol

No comments:

Post a Comment