1. Method (Snippet)
With this trick is very simple, you just need to add the code of snippet to change the post body in homepage. I found the code from XHTML of Popular post widget. Now to the point:- Open and login to blogger.com
- Then select your blog and go to Template tab in left panel
- Then back-up your template for safety
- Click edit HTML, then proceed, then check the expand widget html
- Then (CTRL+F) search for this code: <data:post.body/>
- If you've found it, replace that code with:
<b:if cond='data:blog.pageType == "item"'>
<data:post.body/>
<b:else/>
<b:if cond='data:blog.pageType == "static_page"'>
<data:post.body/>
<b:else/>
<b:if cond='data:post.thumbnailUrl'>
<div style='clear:both;'/>
<span style='float: left; border: 1px solid #eeee; width: auto; height: auto; margin: 5px;'>
<img expr:src='data:post.thumbnailUrl'/>
</span>
<b:else/>
<span style='float: left; border: 1px solid #eeee; width: auto; height: auto; margin: 5px;'>
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQgdMObZlcf4sAlFi_RtJ3bDYbqKNUHD2790kSZHKzKIWhlp4Pk5fTEEAwuccM0AiePVlWNOctyuHPiZ2v29FCHgUnnakGF1_XtOCACnrHqzmmLXaqAo2c90BH0sgXV5CY-ScG3qysMZc/s72-c/nophoto.png'/>
</span>
</b:if><div style=''><data:post.snippet/></div>
<div style='clear:both;'/>
</b:if>
</b:if> - Then save template
- Check your blog
The advantage of this method
With this method is easy and simple, because is only used the little bit of code.
The disadvantage of this method
You can't setting how long or how many letter/word in the post body. With this code maybe the maximal letter is 143.
2.Method (Playing CSS) [Advanced]
With this method, is not very easy, because you need to understand your blog's html, if you're newbie in blogger, maybe you can't understand this code.
Currently unavailable
Tiada ulasan:
Catat Ulasan