You’re missing some essential HTML at the top of your page, including the opening <html> and <head> tags. Double-check that you haven’t accidentally removed some key pieces of code from header.php.
Thread Starter
Rob49
(@rob49)
Hi zoonini,
Thanks, have just been delving around and the <?php get_header( $name ); ?> had somehow ended up further down the page, hence the doctype etc halfway down the source code! Fixed that which in turn fixed the Yoast errors 🙂
Only error showing now is my body tag.
If the validator link is clicked in my first post above you will see what it says. Not sure whats wrong so will start another topic for this unless it is a simple fix.
Thanks for your time.
You have a stray <body>
tag just before <div id="slider">
– if you find out where it’s coming from and get rid of it, hopefully that’ll do the trick on the validation front.
Thread Starter
Rob49
(@rob49)
Ah that fixed it thanks!
Still quite new to the template system and didn’t realise you don’t use <body> tags in template pages.
So if I understand correctly you open the <body> tag in the header, then close it in the footer?
If so then all makes sense and thanks again for your time.
Rob
So if I understand correctly you open the <body> tag in the header, then close it in the footer?
That’s usually the case, yes. The goal is to have a correctly structured page no matter in which files the tags open and close.