• Resolved dan pratt

    (@dan-pratt)


    Strange code appears top left of my blog effects all themes looks like this ‘//–>’
    Any Ideas?

    thetorontoblog.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try deactivating plugins to explore whether any could be responsible.

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    It is definitely a plugin causing that issue; AddtoAny to be specific.

    Here is where the issue lives:

    <!-- AddToAny END -->
    //--></script>

    Try this; in your plugin directory wp-content/plugins/add-to-any/add-to-any.php search for this (around line 965 in my file)

    . "\n//--></script>\n";

    and replace that with this:

    . "\n</script>\n";

    And tell us if that fixes the issue.

    Thread Starter dan pratt

    (@dan-pratt)

    Thanks it was this plugin that was definitely causing the issue. I’ve tried the above solution but it created a strange issue with the post. Decided just to deactivate the plugin and look for another. Your quick response to my problem was much appreciated thanks a million.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Strange code appears top left’ is closed to new replies.