• Resolved surubinwi

    (@surubinwi)


    Hi,

    the js code in the website source code does not update no matter how often I make changes to the code in the backend via the plugin.

    It just continues to show js code that I have written a few weeks ago and left there. I tried to delete the whole code, as well as removing the plugin entirely. But the original code still remains in the source code.

    The website is https://www.freiheitmedia.com/

    And the code in question is:

    window.onhashchange = function () { // onclick funzt ^^
      history.pushState("", document.title, window.location.pathname + window.location.search);
    }

    How can I remove it? Could it be the newest WordPress 4.8 that prevents the code from updating?

    • This topic was modified 7 years, 9 months ago by surubinwi.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,
    I had a look at your website source code, and it appears that the JavaScript code in question is inserted in the page itself between <script> tags. This would not be inserted by our plugin, since our plugin uses an external script file (i.e. <script src=”…”>). The script must be inserted some other way; check your functions.php or other source code files.

    Thread Starter surubinwi

    (@surubinwi)

    Yeah, tested it and it is like you say, it comes from another source (that I am yet to find). Thank you ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Script remains on page after Plugin removal’ is closed to new replies.