The alignment of the menu on this particular website is not as it should be.
This might be a duplicate issue, but despite going through all previous solutions, I am baffled by this problem.
Currently, I am using this CSS method to justify the elements in the menu:
<ul class="justified"><li>Element</li></ul>
Check out this link for more information
You can find detailed instructions on how to achieve this on CSS Tricks (last technique):
Visit this site for clarification
I have successfully implemented this solution on various websites, but after a recent Wordpress update, this issue has arisen. (This is the first time I have faced a theme problem post-upgrade).
Thank you for your assistance,
UPDATE #1
Following Pangloss's advice, I discovered that WordPress is generating <li>
elements without whitespace between them. This was an unexpected behavior... I resolved the issue by manually inserting the missing whitespace.
$menu = wp_nav_menu($defaults);
$menu = str_replace("</li><li", "</li> <li", $menu);