• 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: https://yourfreelayout.com/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Did you check in your functions.php file?

    Thread Starter Daddydesign

    (@daddydesign)

    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.

    Thread Starter Daddydesign

    (@daddydesign)

    nope doesn’t find anything. Searched for “sharethis”. thank you for your help btw..

    Thread Starter Daddydesign

    (@daddydesign)

    anyone have any thoughts? anyone at all..

    Moderator James Huff

    (@macmanx)

    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.

    Thread Starter Daddydesign

    (@daddydesign)

    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..

    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.

    Thread Starter Daddydesign

    (@daddydesign)

    weinerschizel, Have you fixed your issue yet?

    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).

    Thread Starter Daddydesign

    (@daddydesign)

    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

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘sharethis php code wont delete from site’ is closed to new replies.