• Chris

    (@curbano1972)


    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:

    https://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

    https://www.ads-software.com/plugins/addthis/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor addthis_paul

    (@addthis_paul)

    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.

    eggwork

    (@eggwork)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘AddThis share toolbar showing in two different areas…’ is closed to new replies.