This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Remove unwanted script from head section?

  • Creator
    Topic
  • #19790
    stardigit
    Participant

    Hi Jason

    My Alyeska site has a script in the head section which redirects mobile visitors to another site. I think it was placed there by a mobile site plugin that I’ve long since deleted.

    Now I can’t figure out how to delete the script. What’s the best way to do this?

    Thanks
    Dave

    • This topic was modified 8 years, 5 months ago by stardigit.
Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #19796
    Jason Bobich
    Keymaster

    Hello Dave,

    Plugins you’re using do not physically add code to files of your theme. All WordPress themes call a function called wp_head(). This function outputs any scripts that plugins are sending to it from WordPress. So, if a plugin is no longer active, it’s not possible for it still be sending a script to be outputted.

    Here are the only things I can think of that would make what you’re describing possible:

    1) Are you using a caching plugin like W3 Total Cache? If so, clear your cache through the plugin’s interface (or try disabling the plugin to see if it resolves everything)

    2) You’re mistaken about which plugin is adding the script? So, go through your plugins again.

    3) At some point, you manually added the script yourself to header.php of the theme? Maybe open header.php, and make sure you didn’t do this.

Viewing 1 replies (of 1 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.