addthis button to share your articles
Installation
I had already used addthis on one of my sites, and I was pleasantly surprised, when I paid their site a visit, to see that they had developed a plugin specifically for wordpress. In addition, their doc is well done.
Automatic integration
When checking the plugin’s base options, the addthis button will automatically display inside articles and archives.
Manual integration
If, like me, you don’t like to overload the article’s text zone, you may display the addthis button in the sidebar using this code:
if ( function_exists(‘addthis_social_widget’) ) {
echo addthis_social_widget(”);
}
Statistics
The icing on the cake: when you have an account with addthis, it will memorize all your articles’ sharings and provide you with statistics by date, continent, service:
Options page
More ?
Check out the plugins on sharing on the WordPress site.
Finally, a little home-made modification
I just changed a little the addthis_social_widget.php code on line 124 so the button doesn’t display on the homepage:
public function social_widget($content) { // add nothing to RSS feeds; control adding to static/archive/category pages if (is_feed()) return $content; else if (is_home()) return $content; else if (is_page() && !$this->addthis_showonpages) return $content; ...
Suggestions de lecture
- Le fichier sitemaps (1.000)
- Plugin seo all in one (1.000)
- Annoncer une url canonique (1.000)
Spread this post over the world!
How did you like this post?
Please don't go without leaving a mark!
French












Reactions