WordPress.org

Forums

sharethis php code wont delete from site (12 posts)

  1. Daddydesign
    Member
    Posted 5 years ago #

    longer than a year ago we put in the sharethis plugin. We have deleted the plugin and any code related to sharethis, yet < ?php if (function_exists('sharethis_button')) { sharethis_button(); } ?> will not delete from our site. I have tried everything and cant figure it out. You can see it showing on the site here: http://yourfreelayout.com/

  2. Did you check in your functions.php file?

  3. Daddydesign
    Member
    Posted 5 years ago #

    there is no functions.php.. and I have checked everything. The only thing I can think of is trying to delete from database but I cant find it in there as well. Its the wierdest thing.

  4. Daddydesign
    Member
    Posted 5 years ago #

    nope doesn't find anything. Searched for "sharethis". thank you for your help btw..

  5. Daddydesign
    Member
    Posted 5 years ago #

    anyone have any thoughts? anyone at all..

  6. Go to Appearance/Editor in your admin panel and make sure that the code wasn't added to any of your template files. If it was, you should be able to remove it there.

  7. Daddydesign
    Member
    Posted 5 years ago #

    I've done this many times. I'm telling you.. you will not even find the word "sharethis" on this site at all, not even in the database. this just doesn't make any sense. I assume this is only happening to my site because when you search "< ?php if (function_exists('sharethis_button')) { sharethis_button(); } ?>" in google, my site pops up in 1st page..

  8. weinerschizel
    Member
    Posted 4 years ago #

    I'm having the exact same trouble. Quite frustrated as share this is overwriting other sections of my page. Hence why I want to get it off my site.

    It shows up in source when using firebug. However, it's not in any of the php code, plugin is unistalled, etc. etc. etc.

  9. Daddydesign
    Member
    Posted 4 years ago #

    weinerschizel, Have you fixed your issue yet?

  10. Really Must I?
    Member
    Posted 4 years ago #

    I used the Clean Options plugin some time ago and as I recall the ShareThis functions are in the table as

    st_***

    (*** being wildcards I use here as an example)

    Also, if you are using the Thesis theme, and put the ShareThis code into Site Options >> Additional Scripts or Stat Tracking Software box then odd things happen. I suggest using the hooks in Thesis and modifying the custom_functions.php file to place the code exactly where you want it.

    Seems that DaddyDesign has Google ads scripts and they may be the source for whatever reason. When you view his code in Notepad++ and search for ShareThis a couple of Google scripts show up as the source (I think).

  11. Daddydesign
    Member
    Posted 4 years ago #

    Hey bartgragg,

    I found all the st_*** in the database and deleted them all and still having the same issue. Really doesn't make any sense at all. And I def will never install sharethis on any other sites again. thanks for you help

Topic Closed

This topic has been closed to new replies.

About this Topic