WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dan pratt
    Member
    Posted 1 year ago #

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

    thetorontoblog.com

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Try deactivating plugins to explore whether any could be responsible.

  3. esmi
    Forum Moderator
    Posted 1 year 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
    Member
    Posted 1 year ago #

    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.

  5. dan pratt
    Member
    Posted 1 year 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