skip to Main Content

Remove ShareThis Shortcode


The default ShareThis WordPress plugin is great but the only limitation is not having shortcodes that helps one select which pages or posts would have the shareThis buttons without having the tweak the template files. I came across the fix that allows one to be able to have or remove the ShareThis buttons from certain pages and/or posts.

Add this code to to bottom of your functions.php file in the theme folder:

* Creates sharethis shortcode
if (function_exists(‘st_makeEntries’)) :
add_shortcode(‘sharethis’, ‘st_makeEntries’);

And finally, add the [sharethis] shortcode to the pages/posts that you want the buttons to appear on.

Back To Top