• Resolved xpdev

    (@xpdev)


    Screenshot of the problem, with Chrome’s Inspector showing the HTML: https://imgur.com/kXEa2CF
    I’m unaware of any changes to the site recently, aside from two blog posts I made yesterday, but today there is suddenly a closing angle bracket shoved into the HTML, immediately under the opening body tag and above the <!--Google Tag Manager (noscript)--> code. It appears at the top of the page on Chrome (signed in), Microsoft Edge and Firefox (not signed in).

    I do not currently have access to our FTP server (we’ve switched hosts and SEO companies too many times over the past few years and somewhere along the way the password got changed). I also wouldn’t know which file exactly to edit to be rid of this problem.

    Is there another way I can go around fixing this, or, barring that, which file should I look into once I get FTP access again?

    The website is https://www.xpolice.ca/

    • This topic was modified 7 years, 6 months ago by xpdev.
    • This topic was modified 7 years, 6 months ago by xpdev.
    • This topic was modified 7 years, 6 months ago by xpdev.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi @xpdev

    Have you tried deactivating all your plugins and switching to a bundled theme like Twenty Seventeen to see if that clears it up?

    Hey there @xpdev,

    I took a look at your website and did see the “/>” in the top left hand corner.
    The characters cascade across all pages, so we can rule out anything page or post related.
    I will guess that the exact set of extra characters can be found hard-coded in the header.php file of your WordPress theme, and removing them should fix this.

    If you don’t have FTP access you can try the WordPress file editor, which you can access by going to Appearance > Editor, then finding the header.php file in your theme folder.
    If the file is not writable, you’ll need either FTP or some server-side access to remove the characters.
    PLEASE BE VERY CAREFUL! If you remove anything other than those exact characters you can kill the entire site! So I strongly recommend backing up the site before proceeding.

    Hope that helps!
    If you need help with the above just let me know ??

    Thanks,
    Jordan

    • This reply was modified 7 years, 6 months ago by jordanwpcom.

    could be connected with your ‘google-site-verification’ code which might be added via a plugin

    Thread Starter xpdev

    (@xpdev)

    @jordanwpcom Got it, the code was in the header.php and I managed to remove it (after trying to update the file twice).

    Thank you for your help everyone! Good to know I can edit some files without FTP access (our new web host has been less than responsive so I still don’t have that login info).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“/>” showing at the top of all pages’ is closed to new replies.