Twenty-Twenty-Two Child Theme Mega Menu

For the ‘Everything’ submenu, you can target it and then set the width to simply fit the content. nav.wp-container-2 li.wp-block-navigation-item.has-child ul.wp-block-navigation__submenu-container { width: fit-content; } This worked for me on StackBlitz, but you may need greater specificity (MDN) to target the element in your project. Note that you can also flag it as important (MDN) … Read more