Social Sharing Toolkit
Excluding some pages from displaying the buttons (9 posts)

  1. shlomof
    Posted 3 years ago #

    I've got some pages that I don't want the buttons to be displayed. How can I prevent that?



  2. somethingelse
    Posted 3 years ago #

    i need to do this too.... any suggestions would be appreciated.

  3. tdmac
    Posted 3 years ago #

    Did anyone get an answer to this? I thought this was working properly a little while ago, but the toolkit is appearing on all my pages. I don't want that. I need to pick and choose where they appear.

  4. Tom
    Posted 3 years ago #

    I also need this... OK, I found this information on http://www.active-bits.nl/support/social-sharing-toolkit/: "Plans for next update(s): - Enabling / disabling of buttons per page".

    I am looking forward to the update!

  5. somethingelse
    Posted 3 years ago #

    my interim solution has been to add new template for the pages i don't want sharing on, and include the following extra style in the header

    <style  type="text/css">
    div.mr_social_sharing_wrapper {
    	display: none;

    it's not perfect, but it does the job for now.

    someone with more skill could likely do it with conditional tags and custom fields...
    but i didn't have time to sort that out for this project.

  6. Tom
    Posted 3 years ago #

    @somethingelse Thank you, this worked! I added this code just under <?php get_header(); ?> in my new template page-no-buttons.php (and not in the header itself). I am not sure if that is correct but it does the job :-)

  7. somethingelse
    Posted 3 years ago #

    hi Tom - technically that's not perfect, but i'm from the school where "it works" is perfect enough most of the time :D

    better plan might be to make a new file - header-nobuttons.php (just save-as your original header.php)- and put the extra style in there, where it should be (before the wp_header hook)... then on your page-no-buttons.php use get_header(nobuttons)

    a more expert coder might have better advice, but as far as i know, that approach would be more "correct".

  8. Tom
    Posted 3 years ago #

    Hi somethingelse, this worked too. When there is an update to Social Sharing Toolkit I will use the "disabling of buttons per page" feature to limit the number of unnecessary files. But for now I have what I wanted:) Thanks a lot!

  9. craigcac
    Posted 3 years ago #

    Does anybody know if this was ever implemented?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Social Sharing Toolkit
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic