Senin, 07 Mei 2012

How will we Add a Digg Button To My Posts?

Digg it! Ok, though how? There isn’t any image anywhere during a post. thus a theme is “How can we Add a Digg Button To My Posts?

First I’m beginning to discuss it we tend to that we've been traffic with html once more. Follow this tutorial fastidiously, or we are going to risk ruining your blog! okay, lets start. 

As we tend to competence have expected, a series one step is to travel to Dashboard and Layout similarly as click upon a Edit html tab. Then check a box that says ‘Expand Widget Templates’. Note that this step is basically necessary, if we tend to don't parasite a box we might not be means that to envision a html formula properly. currently manner for a tag : 
<p><data:post.body></p>
At this indicate we have multiform option, possibly to put a logo upon a right, left, or when a post. Decide 1st, afterwards go upon reading.

If we would like to put it upon a right aspect of any post, supplement a following formula before <p><data:post.body></p>, so it'll manner just like this: 
<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><p><data:post.body></p>
If we have a tendency to want to uncover a symbol throughout a end of any posts, supplement a formula when <p><data:post.body></p>, so it'll demeanour a dead ringer for this:
<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>
Or if we tend to want an emblem to occur upon a left facet of any post, supplement this line instead:
<div style=’float:left; margin-right:10px;’>
<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>
Note which a formula is a dead ringer for all a on top of, though with a small modification, which is, we tend to retreat a boyant parameter from right to left in addition as a domain from left to right.

Wait, this ain’t over nonetheless, Digg still have a singular some-more image in a sleeves: atiny low, compress button. this is often image is accessible if we tend to would like to avoid wasting somewhat area (like we tend to do, look into a Digg image during this blog), as a unchanging image may merely be incomparable than a post itself. To supplement a compress image to any post, pulp this formula instead:
<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>
You may have noticed that we solely have one line of code combined, and that's what creates the distinction. that every one I actually have to tell, likewise as if we've got any technical issues, solely criticism for this post. Digg-ing happy!4.5

Tidak ada komentar:

Posting Komentar