I’ve spent half day yesterday trying to get bookmarks working EXACTLY the way I wanted.

My idea was to get them displayed in the sidebar in a way that allows to submit entire site (not only particular posts) to favourite social bookmarks services. And they had to be “made of” icons (not text).

I didn’t expect any problems since there is quite a lot of plugins offering such feature but…. Most of them is designed to use within posts. I skipped those which “auto-implement” in post structure because there was no chance to customize them. I tried two other that required adding php code manually within the_loop. Wp-Notable seemed to be perfect but… later one when trying to customize its look to match my theme I discovered that it also works only for posts! I found only one designed to submit entire site (AddMySite ) but it uses list or dropdown menu (you can choose option).

Finally I found an article on DIY text bookmarks ;) for posts. When I saw how EXACTLY the code looks like I realised I can customize it to have it working for entire site!

I’ve checked two more places to make sure given code for submitting to bookmarks services is correct (actually in one case I had to change it a little).
I’ve removed all <?php the_title() ?> and then replaced all <?php the_permalink() ?> with <?php bloginfo('siteurl');?>.
That’s a piece of code I used for bookmarks on this site:

<h3>Add this site to:</h3>
<ul>
<li><a href="http://del.icio.us/post?url=<?php bloginfo(’siteurl’);?>/" title="Submit to Del.icio.us">del.icio.us</a></li>
<li><a href="http://www.digg.com/submit?phase=2&amp;url=<?php bloginfo(’siteurl’);?>/" title="Submit to Digg">Digg</a></li>
<li><a href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=<?php bloginfo(’siteurl’);?>/" title="Submit to Google Bookmarks">Google Bookmarks</a></li>
<li><a href="http://technorati.com/faves?add=<?php bloginfo(’siteurl’);?>/" title="Submit to Technorati">Technorati</a></li>
<li><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?&amp;u=<?php bloginfo(’siteurl’);?>/" title="Submit to Yahoo MyWeb2">MyYahoo</a></li>
</ul>

And results? Check on sidebar :).

PS. If someone wants to have bookmarks icons within posts there is one (ok, maybe more ;) ) really great plugin. It’s called ShareThis and enables not only adding posts to bookmarks but also e-mail them. And design is just awesome :).