How To Add A Floating Bookmarks Panel To Your Blog

Posted by Udegbunam Chukwudi on August - 11 - 2010

In one of my weekly top blog posts round up, I raved about the stunning Smart Sharing plug-in by the folks @ WpBeginner. This plug-in made it possible to add a floating social media bookmark panel to the side of your wordpress blog’s theme making it easier for your readers to bookmark and share your posts.

Floating Bookmark Box

I was in love with it, until, I casually navigated the mobile version of this site and discovered that the floating panel was now floating over my content thus making it impossible for mobile visitors to read my blog posts.

I uninstalled the plug-in @ once and started looking for ways to implement it’s function within the desktop theme of my blog ONLY! After reading How To Create A Sexy Vertical Sliding Panel Using jQuery And CSS3 and Fixed Social Icons on the Side of Whole Site, I created my own floating bookmarks box and here’s how I managed it.



Log in to your wordpress admin area then go straight to theme editor. Copy and paste the css code below into your theme’s stylesheet (style.css)

#fixed_icons {
border:1px solid #E8E8E8;
position:fixed;
background:#fff;
width: 65px;
left: 0; margin: 0 0px 0 20px;
top: 80px; }
}

#fixed_icons a {
display: block;
text-indent: 4px;
height: 48px;
padding-bottom:3px;
padding-top:10px;
text-decoration: none;
}

#fixed_icons ul {
padding: 5px;
border-bottom: 1px solid #e8e8e8;
}

Once you’re done save it & then open your single.php and right between <?php get_sidebar(); ?> and <?php get_footer(); ?> add the following code:

<div id=”fixed_icons”>
<ul>
<script type=”text/javascript”>
tweetmeme_source = ‘your twitter id’;
tweetmeme_url = ‘<?php the_permalink(); ?>’;
</script>
<script type=”text/javascript” src=”
http://tweetmeme.com/i/scripts/button.js”></script>
</ul>

<ul>
<a name=”fb_share” type=”box_count” href=”http://www.facebook.com/sharer.php”>Share</a><script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share” type=”text/javascript”></script>
</ul>

<ul>
<script src=”http://widgets.digg.com/buttons.js” type=”text/javascript”></script>
<a class=”DiggThisButton DiggMedium”></a>
</ul>

<ul>
<script src=”http://www.stumbleupon.com/hostedbadge.php?s=5&amp;r=<?php the_permalink(); ?>”></script>
</ul>

<ul>
<a title=”Post to Google Buzz” class=”google-buzz-button” href=”http://www.google.com/buzz/post” data-button-style=”normal-count”></a>
<script type=”text/javascript” src=”http://www.google.com/buzz/api/button.js”></script>
</ul>
</div>

Save your single.php template and your floating bookmarks panel should now appear right at the side of your theme on every single post.

If you’d like to change the distance of the floating panel from the top of the screen/monitor, simply edit top which is shown in red above. For left and right display of the panel and distance from the theme also edit left shown in red too.

As you all might have noticed, I’m no longer using it here because Amit Banerjee complained that it was blocking the contents of my blog. Apparently it works fine on monitors with larger resolutions than smaller ones.

NOTE: Only use the floating panel if you’re quite certain that the majority of your visitors have got high resolution monitors or wide screen monitors. I think there’s a way of tracking that via Google Analytics. I’m not so sure now. On the other hand, you could download and install ShareBar plugin which is what I’m presently using now ;-)

If you need assistance, feel free to leave a comment below and I’ll be glad to help you in any way I can ;-) .


Related Articles You May Like To Read
  1. How To Add Content After The More Tag In WordPress
  2. How To Add NoFollow Attribute To Blog Roll Links
  3. How To Add A Favicon To Your Blog & Website
  4. Search Results
  5. How To Integrate Tweetmeme Without A Plug-in

Disclosure: Please note that each time you make a purchase via any referral link on this site, I make a commission. Click here for more info.


10 Comments so far. Leave Yours Below

If you want to ask a question regarding anything from blogging to making money online and wordpress plugins tips, do please make use of the floating search bar at the bottom of this site. If you don't find what you're looking for, then feel free to ask your question

ALL COMMENTS WITH KEYWORDS AS NAMES WILL BE DELETED! TAKE NOTE!


Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.


  1. I think as long as it does not stop people from reading the content then it is a good thing.

    I’m not a big fan of those newsletter pop-up boxes that slowly materialise over the content while you are reading it. This floating bookmark thing doesn’t do that, does it?

    • Trust me Dean. I’m also not a fan of those pop up things. This hack does pop up over your content. It stays to the side of the blog by default unless the blog is been viewed with a low resolution monitor then it overlaps.

  2. Iroko says:

    Hey!, what did you go and do in medical school, please just follow the path of Bill Gates and leave the hospiTAL for those that want to continue in that, see how you are dismantling php syntax, as if that is what you were born to do!

  3. Google Ranking says:

    Thanks for this widget. I am going to apply this on my blogspot blog. Bookmarking acts as an online marketing tool that is behind the success of email marketing and online business.

  4. I was about to mention that to you few weeks ago, since when I was using my sister’s notebook at that time, the floating bookmarks panel covered the left part of the screen, making it hard to read the contents (though I was still able to read the entire entry by just pressing the down button slowly). Actually, when I was leaving a comment back then, the panel was also blocking an area of the comment box. Good thing you’ve managed to see and checked it yourself :)

    But I did like this plugin before, when I was still using joomla 1.5. It looked stylish and made it much accessible for readers to share the content.

  5. farhan says:

    hiii…can i change the button to small icon?is too big, if can, would you help me? i want like a social button like at the digsdigs.com site.. please.. :D