Adding Digg Button
Layout>Edit HTMl> "Expand Widget Templates". Scroll about two-thirds down the template to look (click on html> Ctrl+f) for the code that reads:- <p><data:post.body/></p> If you want the button to show at the top right corner of your post, replace the above code with this. <div style='float:right; margin-left:10px;'> If you would like the button to appear at the end of your post, replace with this following code instead. <p><data:post.body/></p> If you want to have the button at the top left corner of your post, change the alignment. <div style='float:left; margin-right:10px;'> Digg has another compact button. If you insert this code:- You can also change the background color of the button to blend with your site. For example, a code like this:-
<script type='text/javascript'>
digg_url="<data:post.url/>";
</script>
<script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
</div>
<p><data:post.body/></p>
<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>
<script type='text/javascript'>
digg_url="<data:post.url/>";
</script>
<script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
</div>
<p><data:post.body/></p>
<div style='float:right; margin-left:10px;'>
<script type='text/javascript'>
digg_url="<data:post.url/>";
digg_skin="compact";
</script>
<script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
</div>
<p><data:post.body/></p>
<div style='float:right; margin-left:10px;'>
<script type='text/javascript'>
digg_url="<data:post.url/>";
digg_bgcolor="#BDEDFF";
digg_skin="compact";
</script>
<script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
</div>
<p><data:post.body/></p>
10:20 PM
|
Labels:
Adding Digg Button
|
This entry was posted on 10:20 PM
and is filed under
Adding Digg Button
.
You can follow any responses to this entry through
the RSS 2.0 feed.
You can leave a response,
or trackback from your own site.
0 comments:
Post a Comment