2 body btags and body_class() classes not displaying
-
I have a wierd problem.
If I inspect my WP pages using chrome element inspector I see two body tags thus:`<body cz-shortcut-listen=”true”>
<body>`This is causing styling and JS problems.
If I view source then just a single<body>
is displayed with no classes.No classes from body_class() are displayed in either view but I can echo them out into the source quite happily when they are not within this line in header.php
<body <?php body_class();?>>
simply adding<?php body_class();?>
above or below that line displays all the body classes quite happily so they are being set.If I comment out the line in header.php that writes the body using php commenting this body tag is still rendered
<body cz-shortcut-listen="true">
This happens with all themes and also to users outside of my local network and in chrome AND firefox so it seems not to be a theme or local browser issue.
Has anyone any idea what it might be, it is a major headache and I’m quite stumped as to what it could be or how to even go about working out what the problem is.
Just for info:
Server is running Apache/2.2.29
PHP/5.3.29
Mysql 5.5.42
amazon Linux on an EC2 m3.medium instance.You can see a staging site here:
https://eco.clearintent.co.uk/Thanks,
Paul
- The topic ‘2 body btags and body_class() classes not displaying’ is closed to new replies.