0

In our site, we've got some old code sitting in the header. I'm guessing it originated from a plugin we used to use (embedding Scribd content into the site), but we are no longer using it.

<script type="text/javascript" src="http://www.scribd.com/javascripts/view.js"></script>

The problem is I can't figure out how to get rid of this script. It's not in header.php - so where would I go to edit this out?

2
  • This is most likely injected through the wp_head hook into your <head> tag. Did you check the list of activated plugins or did you try to peak into the functions.php file in your current theme directory?
    – birgire
    Commented Aug 8, 2014 at 19:59
  • I don't see any reference to the scribd javascript in functions.php. Looking through activated (and inactive) plugins, don't see anything related to scribd anymore.
    – Hal Atkins
    Commented Aug 8, 2014 at 20:03

2 Answers 2

1

If you have SSH, go to your wp-content directory and grep it.

/ grep -HRn 'scribd' .
-1

Found the code. There was a plugin that had not deleted itself completely. All gone - thanks for the grep idea!

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.