as blogger, natural and challenge to change template our blog . the aim to beautify display blog
example we wish for for yard display differ/ a widget only come up on page in front of/homepage. its way:
first logging blogger step into location order > edit html afterwards tick off box in expand widget templates then look for (ctrl+f) location widget you present. our for example wants to show" shoutbox" on page face.
so you must look for code as in under this
<b:widget id='HTML1' locked='false' title='Shoutbox' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == "index"'>
<!-- 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>and with add code <b:if cond='data:blog.url == data:blog.homepageUrl'> after code red and add code </b: if> after blue colour code.
display widget in hompage
<b: if cond='data: blog. url == data: blog. homepageurl'>
display widget on page posting
<b: if cond='data: blog. pagetype ==" item" '>
display widget on page archives
<b: if cond='data: blog. pagetype ==" archive" '>
display widget on page static
<b: if cond='data: blog. pagetype ==" static" '>
display widget on page certain
<b: if cond='data: blog. url ==" [postaddress" '>
· the location likes example above.
· if you wish for result on the contrary, so you live to replaced sign" = =" be" ! =" . your example wants to display widget besides at yard hompage, so change code <b: if cond='data: blog. url == data: blog. homepageurl'> with code <b: if cond='data: blog. url! = data: blog. homepageurl'>
good luck!
No comments:
Post a Comment