How to Add Delicious Counter Button in WordPress Site
|
Delicious has introduced many new changes. It has introduced concept of Stack which is nothing but a way to group various links.
Delicious counter button is little bit tricky but I’ll keep it simple.
In order to add Delicious counter button to WordPress you need to add 2 pieces of codes in header and single template files as described below.
Add the following code in header.php file
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://delicious-button.googlecode.com/files/jquery.delicious-button-1.0.min.js"></script>
Add following code in single.php file
<a class='delicious-button' href='http://delicious.com/save'>
<!-- {
url:"<?php the_permalink() ?>"
,title:"<?php the_title(); ?>"
,button:"wide"
} -->
Save on Delicious
</a>
Above code will not work on category.php. I’ll update this code to make it work on Category pages later.
0 comments:
Post a Comment