WordPress 4.4 update breaks wp_nav_menu() layout
-
Hello,
I have recently updated a website to wordpress 4.4, and experienced a change in the front-end layout when usingwp_nav_menu()
.
Been testing locally, and have come to the conclusion that with this css:nav > ul { text-align: justify; } nav > ul li { display: inline-block; } nav > ul:after { content:''; width: 100%; display: inline-block; font-size: 0; line-height: 0; margin-bottom:2%; }
this code displays fine:
<nav> <ul> <li><a href="#">text</a></li> <li><a href="#">text</a></li> <li><a href="#">text</a></li> </ul> </nav>
but this breaks the layout:
<nav><ul><li><a href="#">text</a></li><li><a href="#">text</a></li><li><a href="#">text</a></li></ul></nav>
The last html code format is the one produced by
wp_nav_menu()
in WordPress 4.4.
Everything was displaying correctly before updating to the latest version.Is there any way I can fix this?
Or maybe change my css to adapt it to the new html format?Thank you!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘WordPress 4.4 update breaks wp_nav_menu() layout’ is closed to new replies.