WordPress.org

Ready to get started?Download WordPress

Forums

Share Buttons by AddThis
AddThis share toolbar showing in two different areas... (3 posts)

  1. Chris
    Member
    Posted 6 months ago #

    Hello,

    Because of the way my theme was developed, I have, on some pages, the AddThis share toolbar showing near the top of the page as well as the bottom:

    http://website-startup.com/virtuozzo-vps/

    I have it only on the bottom of the page on the majority of my site. Is there a way to disable this in code? I noticed:

    id="addthis_show_option" name="addthis_show_option" value="1"

    in one of the files but am not sure how to implement this in code to value="0" (assuming that is even the right way to go about this). If I were to use the checkbox on the page setup it will get rid of both. I only want to get rid of the top one. It is disabled in the Settings area, the page was just constructed this way and the plugin sees certain pages as two separate pages and thinks it the bottom.

    Any ideas? Thank you!

    Chris

    http://wordpress.org/plugins/addthis/

  2. addthis_paul
    AddThis Samurai
    Plugin Author

    Posted 6 months ago #

    The reason your theme is showing the AddThis buttons twice is likely because it's using two functions that we hook callbacks into such as the_excerpt() or the_content(). Like you discovered, there's no way to disable one button without disabling the other, however there might be a way to adjust your theme to use a function that doesn't include a callback - like get_the_content() - to prevent the buttons from showing up in one of the sections.

  3. eggwork
    Member
    Posted 2 months ago #

    I have the problem as Chris. I'm not sure where to implement the code. I'm guessing Network Admin > Themes > editor, but I'm not sure which template the code might be in. Should I just find & replace all instances of the_content with get_the_content. As you can imagine, I'm not an advanced WP programmer.

    Leaning toward dropping Add This.

Reply

You must log in to post.

About this Plugin

About this Topic