Are you familiar with the Chrome inspector? You can right click on any element in your site and choose inspect to get more information about that element. If you’re not using Chrome, most modern browsers have this built in.
You may see something like this:
<nav id="site-navigation" class="main-navigation" role="navigation">
<div id="primary-menu" class="menu sf-js-enabled sf-arrows" style="touch-action: pan-y;">
<ul aria-expanded="false" class="nav-menu">
<li class="page_item page-item-2"><a href="https://wp-themes.com/?page_id=2">About</a></li>
<li class="page_item page-item-46 page_item_has_children"><a href="https://wp-themes.com/?page_id=46" class="sf-with-ul">Parent Page</a></li>
</ul>
</div>
</nav>
This is from the theme demo. See how your .nav-menu is surrounded with div#primary-menu
and nav#site-navigation
? That’s where you would need to add extra width.
#site-navigation,
#primary-menu{
width:100%; // maybe smaller depending on your site
}
Keep in mind this will most likely effect any responsive code. So you could wrap it in a media query.
@media (min-width: 900px) {
#site-navigation,
#primary-menu{
width:100%; // maybe smaller depending on your site
}
}