![]() |
How can I solve W3C errors?
Using Streamline child theme:
I did check the W3C Markup Validation Service on ip-192.com and get 2 errors. Error Line 243, Column 6: end tag for element "div" which is not open </div> <div id="footer-widgeted"> This Error belongs to an empty sidebar-bottom-left div, which is correct defined. Error Line 280, Column 6: end tag for element "div" which is not open </div> <div id="sidebar-bottom-left"> </div> This Error closes a widget_nav_menu. I see unclosed </body> and </html> tags at the bottom of the page. This problem happens at Streamline child home pages with different customizations. Any hint how I can solve this would be very much appreciated. |
start by checking any text widgets you have. Those are the most likely place for bad HTML. What changes did you make to the home.php file?
|
Please see the content of the home.php below. I don't recall any changes on my end.
PHP Code:
The 4 footers are served by custom menus. I checked the the other widgets, but couldn't find any unclosed items. I don't understand the unclosed </body> and </html> tags at the bottom of the page. |
what edits have you made?
|
none
|
Then it has to be content, either in the post or via a text widget.
|
I have the same 2 (only) errors on all Streamline child home pages with different child-css, widgets, and one site has no posts and widgets at all on the front page. I am clueless where to start.
|
Then something was changed in the theme files. What is in the functions.php file
|
function.php:
PHP Code:
|
ok what is in your footer-widgeted.php file?
|
footer-widget.php
PHP Code:
|
topnav.php?
|
topnav.php:
PHP Code:
|
sidebar-bottom.php?
|
Good morning, Nick!
sidebar-bottom.php: PHP Code:
|
I believe that is all the theme files. Unless something was changed in Genesis it has to be coming from a plugin or content.
|
|
I went through line by line and did find an extra </div>
You are editing the footer of both sites, how are you changing the footer? |
I use the Genesis Footer Hook. Execute PHP on this hook? = yes, i.e. Gemini:
PHP Code:
|
somewhere there is a </div> being added. I see other code added where I wouldn't normally see it, some <scripts> in #header and other places.
Try disabling all plugins and test. |
I tried to figure out exactly this where the extra </div>’s coming from. Since it is on each Streamline home page (with different plugins, widgets, posts/no posts, with/without footer widgets), I thought Genesis parent theme could be the source, but I don’t know. I did upgrade Genesis to the latest version 1.8.2.
|
If it is only on the home page my first guess would be the home.php file, but you posted that and I went through it. It is all correct.
If it were the parent files then it would affect other pages, not just the home page. So it cannot be the parent files, not unless they were edited with an is_home/is_front_page() conditional that changes the output only on the home page. This means it has to be related to content. Even if it is different plugins there has to be something common tying it together. |
I did check some other pages/posts with W3C, but it found these errors on the home page only.
|
it still points to content or plugins. The other possibilities have been eliminated.
|
The previous/next buttons of the Smart Slideshow Widget are responsible for the errors; without them the sites pass the test.
Thanks again NicktheGeek, please feel free to close the thread. |
You're welcome.
Since this is resolved I'm going to close this thread. |
| All times are GMT -5. The time now is 06:39 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.