[resolved] Strange code appears top left (5 posts)

  1. dan pratt
    Posted 2 years ago #

    Strange code appears top left of my blog effects all themes looks like this '//-->'
    Any Ideas?


  2. Andrew
    Bawk bawk moderator
    Posted 2 years ago #

    Try deactivating plugins to explore whether any could be responsible.

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    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.

  4. HallMarc
    Posted 2 years ago #

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

    Here is where the issue lives:

    <!-- AddToAny END -->

    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.

  5. dan pratt
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic