my webpage is almost finished and during validation on http://validator.w3.org/ I am receiving lot of errors, more of them are connected with menu section of page. To explain it with more details, some of sections of my web page are not listed in menu, they are disabled using function "Disabled page from menu: YES". But inside the code of web page there are still missing (empty) li tags: "No li element in scope but a li end tag seen."
Does anyone know how to solve it? I will be grateful for any help you can provide.
Dear All,
my webpage is almost finished and during validation on http://validator.w3.org/ I am receiving lot of errors, more of them are connected with menu section of page. To explain it with more details, some of sections of my web page are not listed in menu, they are disabled using function "Disabled page from menu: YES". But inside the code of web page there are still missing (empty) li tags: "No li element in scope but a li end tag seen."
Does anyone know how to solve it? I will be grateful for any help you can provide.
Thank you for bringing this to our attention , it is indeed because of the pages included in the main page but not shown in the menu.
to fix this you need two things:
1. modify functions.php and include a redefinition of end_el function for Menu_Walker class
2. remove line 78 in /sections/home_section_parallax_slider.php which inserts a redundant li closing tag
I attached both files to this ticket - we want to include these modifs in our future update as well.
Let us know how it works.
Thanks again
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy
It works - great job!
Thank you very much for your help.