• Resolved LittleBirdWeb

    (@littlebirdweb)


    Hi,

    The AddThis plugin broke my theme, when it was activated it broke all the site’s excerpts – basically I had a similar problem to this thread: https://www.ads-software.com/support/topic/buttons-appear-in-header-breaks-theme/

    So I uninstalled AddThis buttons and put Website Tools by AddThis on the site instead. I registered the plugin with AddThis (got a new ID) and created some Tools but when I installed the code the on my website I got 2 sets of page bottom buttons.

    When I looked at the code I could see that in addition to the script from AddThis that I had enqueued (new ID) and added to the footer via functions.php the previous script from the original AddThis Buttons plugin (old ID) was still being called before the closing body tag. I had uninstalled and deleted the AddThis buttons plugin so I don’t know how this script is still being called because it should have been deleted and it isn’t in the theme code so hasn’t being manually added.

    Does anyone know how to get rid of the old script?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Leland

    (@addthisleland)

    Hi @littlebirdweb,

    Can you share us the URL of your website so we can take a further look?

    Thanks,
    Leland
    Support Engineer | AddThis

    • This reply was modified 7 years, 4 months ago by Leland.
    Thread Starter LittleBirdWeb

    (@littlebirdweb)

    The site is: https://phoenixgymnorwich.co.uk/

    Thanks

    Plugin Contributor Leland

    (@addthisleland)

    Hi @littlebirdweb,

    It looks like you’ve hardcoded that AddThis script somewhere in your theme’s files, perhaps function.php or footer.php?

    The reason why I suspect that is because the script is placed right below your theme’s JS files which is usually being called through one of the theme templates.

    I’d suggest that you search your theme files and widget area to look for that script because it is not generated by the plugin.

    Thanks,
    Leland
    Support Engineer | AddThis

    • This reply was modified 7 years, 4 months ago by Leland.
    Thread Starter LittleBirdWeb

    (@littlebirdweb)

    Hi

    I have fixed it. As I said in my original post I had not hardcoded the first script used for the AddThis Buttons plugin into the theme.

    When I installed the Website Tools by AddThis the old account ID/profile used by the first AddThis Buttons plugin was automatically was stored by the Website Tools plugin. Therefore the old script was loading from the new plugin. When Website Tools is uninstalled the old script is taken off the site.

    For some reason the new account and profile ID that I set up through Website Tools when I installed the plugin wasn’t being saved. Logging in again through the plugin seems to have overwritten the old script/profile ID and fixed it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘AddThis plugin breaks theme, uninstall leaves script behind’ is closed to new replies.