If you want to install a Digg button on your corner of the article, follow the tutorial below.
- Log in to Blogger with your blogger account.
- After you log in, click on the Layout.
- Click on Edit HTML.
- Mark on Expand Template Widget.
- Download your template before editing. Click Download Full Template.
- Find code like this in your template
<p><data:post.body/></p> - Change the code above into the form like this.
<p>
<!-- DIGG -->
<div style='float:right; margin-left:10px;'>
<script type='text/javascript'>
digg_url = '<data:post.url/>';
</script>
<script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
</div>
<data:post.body/>
</p> - Click Save Template.
Tricks above can be used if your template do not use the "Read More" system. If you use a template with "Read More" system, form of the code is like this.
<b:if cond='data:blog.pageType == "item"'>
<style>.fullpost{display:inline;}</style>
<p>
<!-- DIGG -->
<div style='float:right; margin-left:10px;'>
<script type='text/javascript'>
digg_url = '<data:post.url/>';
</script>
<script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
</div>
<data:post.body/>
</p>
<b:else/>
<style>.fullpost{display:none;}</style>
<p>
<!-- DIGG -->
<div style='float:right; margin-left:10px;'>
<script type='text/javascript'>
digg_url = '<data:post.url/>';
</script>
<script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
</div>
<data:post.body/>
</p>
<a expr:href='data:post.url'><b>Read More...</b></a>
</b:if>
Save your template
Ok, i think this enough. Happy trying!!
0 comments:
Post a Comment