I have practically researched about Social Share. Everywhere there are something missing. Also I wanted something more customized. Like to use short url in twitter share. Here is a solution but it was not working. Also it was too old. I have found the exact easy way in Kematica. Using wp_get_shortlink is the solution.
Images are optional. If you looking for them, get back to my previous post. I have to used social counts in my Bangladeshi results and circular blogs, it was necessary to show the popularity. So I have used iframe Facebook and twitter codes. You can add them or leave them. Its your choice.
Demo of the button:
I have used these codes for both Genesis and Thesis. They are working fine. Previously I had conflict with other twitter css codes in sidebar. Thats why the css code was broken.
We will use Header and footer plugin to use the code below every post. Download and install Header and Footer from above link. Go to Dashboard > Settings > Header and Footer.
Click on Post Content > Copy codes from below and paste it in “Code to be inserted after each post“.
For Thesis Theme users, we will need Thesis Open Hook. I have done this in my Thesis 1.8.5. Not sure in case of newer version of thesis theme. Also you can choose Header and Footer instead of Open Hook plugin.
Go to Dashboard > Thesis > Thesis hooks. Add the below code in Thesis_hook_after_post
Add Facebook and Twitter with Share Counts
Insert the below codes anywhere using the hook or Header and Footer plugin. Preferably below the above code.
Add Some Style and Colorful buttons:
Insert the below codes in your child themes style.css or custom.css in Thesis theme.