Hiding submenus on mobile | WordPress.org

[ad_1]

You use Astra as your theme. This is responsible for the output of the menu. In Astra you can create and manage a separate mobile menu. You have already done that. So you would only have to change the content for the mobile menu.

How to create a mobile menu in Astra is described here – if necessary, you can also find the way to adapt the content using the instructions.

If you have any further questions, please contact the Astra support forum:

It sounds like you want to hide the submenus of your main menu categories on mobile devices, so that only the main categories are visible when the menu button is clicked. This is a common design approach to ensure a cleaner and more organized mobile menu.

To achieve this, you can use CSS media queries to apply different styles based on the screen size.

I was so close already @threadi Thank you so much for pointing me in the right direction. I’ve just fixed it how I was wanting it. I sure appreciate the information!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer