• Resolved mrsdextrose

    (@mrsdextrose)


    My site’s been working fine, until I visited just now and there’s a rogue white bar appeared above the header image with the words “page contents” inside it. Be very grateful if someone could advise me how to get rid of it (and perhaps explain why it’s appeared). My site’s at lovefowey.net.
    I’m an FTP newbie so if that’s involved idiot-proof instructions would be much appreciated.
    Thanks in advance.

Viewing 15 replies - 1 through 15 (of 17 total)
  • It’s something that is getting echoed in your opening <body> tag.

    First try temporarily deactivating ALL of your plugins… and then manually clearing your browser cache.

    Go back and check to see if it’s still there, and let us know please.

    Thread Starter mrsdextrose

    (@mrsdextrose)

    Hi Josh – I just tried that and afraid it didn’t work. Text and white space still there. Any other ideas gratefully received…

    Check your header.php file in that search that content is there ? Using FTP goto wp-content/themes/yourtheme/header.php/

    Check that word and remove.

    Thread Starter mrsdextrose

    (@mrsdextrose)

    Hi thanks for advice. As stated above am an FTP newbie so some idiot-proof instructions would be much appreciated please. I’ve opened wp-content/themes/pagelines/header.php – now what do I look for? And what do I do when/if I find it? Thank you!

    Can we see the site with all plugins deactivated?

    Are there any SEO settings as part of that theme? This errant code in the header.php file is creating that problem:

    <html>
    	<head>
    		<meta name="msvalidate.01" content="466EAFC77550E73613B5B8548C6E849A" />
    		<title>Your SEO optimized title</title>
    	</head>
    	<body>
    		page contents
    	</body>
    </html>
    <!-- Nav Classic | Section Head -->

    Thread Starter mrsdextrose

    (@mrsdextrose)

    I have Yoast SEO plugin and have loaded keywords to every image on the site. I’ll deactivate all the plugins right now, should be ready in 5 mins. Thank you!

    Thread Starter mrsdextrose

    (@mrsdextrose)

    Right all plugins deactivated. I have the WordPress SEO plugin by Yoost and the Header and Footer plugin, if that’s relevant…

    Now that code is gone…so one of your plugins was adding it. So reactivate them one by one and check if and when it reappears.

    Thread Starter mrsdextrose

    (@mrsdextrose)

    Will do – thank you. And when I find which one was causing it, do I delete and reinstall?

    Yes, you can try that, but it’s possible that some plugins just won’t play nice with some themes or other plugins. But see what happens first – sometimes these kinds of things seem to fix themselves by being deactivated or reinstalled.

    Thread Starter mrsdextrose

    (@mrsdextrose)

    Ah. That code is in the Header and Footer plugin. Can’t recall why I added it. Obviously will delete but – forgive my html ignorance – does that code do anything bar put “page contents” above my header?

    Doesn’t look like it’s doing anything useful to me.

    Thread Starter mrsdextrose

    (@mrsdextrose)

    So I just deleted the

    <body>
    page contents
    </body>

    bit, and it’s fixed. Thanks to everyone who contributed and esp to WPyogi – appreciate the patience and advice. Cheers.

    You should take the <html> tags out of there too – it’s invalid code to have those in any page more than once.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Text suddenly appeared above header’ is closed to new replies.