Adding those social bookmarking buttons at the end of your post
Posted by Daniel - 4,759 Views
It is a good option to add the social bookmarking buttons at the end of your post right? The easiest way to do it is by using one of the available plugin called Add Me Dichev, it is a bundle of social bookmarker buttons packed as a WordPress plugin by Alexander Dichev. It will insert some even many social bookmarking buttons at the of end your post. All you need to do is install it to have it setup. That simple BUT unfortunately it does not happen here on my blog.
Somehow the installation of Add Me Dichev is crashing the ContuttoPDF - a php warning message - header already sent (something like that) and it will stop the ContuttoPDF plugin to work - too bad since I like both plugins, so I decide to disable the Add Me Dichev plugin but keep trying to have the feature of it by adding it into the page outside the plugin system or manually as a pure php function.
Did I say manually? Yes, I will show you how to add those buttons manually in case you’re also having the same problem as mine, and here it goes.
First, deactivate the Add Me Dichev plugin then if you take a look on the addme_dichev.php source code you will notice that it only has one function named add_me($content). Copy that function then paste it to your single.php. Save the file so now you have the function ready to be called.
Still in single.php, to call the function, find the_content() function within your wp loop then put this line of code right under it or somewhere you want the bookmarker buttons will be displayed:
If you need to to alter the appearence of the button group you can do it by CSS. The original div block name is “bookmarkbuttons“, just add styling to that div layer to get your desired result.
In case you want to get the same bookmarker buttons styling as what I have for this blog, here is the CSS code:
padding: 0px;
}
#bookmarkbuttons a {
float: left;
padding: 5px;
border: 1px dotted #fff;
margin-right: 12px;
}
#bookmarkbuttons h3 {
color: #000;
font-weight: bold;
padding-left: 0px;
}
#bookmarkbuttons a:hover {
border: 1px solid #c0c0c0;
}
The following posts are programmatically considered as related to the current post by YARPP Plugin:
Hi, my name is Daniel Nugraha, a single male live on an island called Java, Indonesia. This is the place for me to share my interest in computer programming.
-
Get my Full Feed Here
Popular Entries
- Passing arguments to your VB.NET console application
- Microsoft Excel Import External Data Problem: When Microsoft Query doesn’t recognize some of your parameters
- Resize Image or Crop Image with Joe Lencioni’s Smart Image Resizer, WordPress Setup
- How to Get User Input and allowing more than 256 characters to be entered on .NET Console Application
- ASCII To PDU Converter (Convert ASCII to PDU and vice versa)
- ConsoleProgressBar - Simple Progress Bar Function for your VB.Net Console Application
- An example: Using CPort Delphi Component to read data from your cellphone
- Runtime-Form-Creation. Automatically creating child forms in a Delphi MDI application with a component array
- CPort Component (Serial port interface component for Delphi)
- SmartImageResizer Plugin, WordPress plugin based on Joe Lencioni’s Smart Image Resizer













