By default, when you open a menu under mobile screens, all of the menu items are aligned at left. In case you want to keep the submenu items hierarchy (like the screenshot above), it will require a small code change. Here are all of the necessary steps:
- Admin Panel -> Left Menu -> Appearance -> Theme Editor
- Open style.css
- Under
/* Medium Resolution */
@media screen and (max-width: 799px) { - Find the following code (about 100 lines below):
#navmain ul {
padding:0;
} - Then replace it with:
#navmain ul {
padding:0 0 0 25px;
} - Save changes
That’s all. Now, when open your website under mobile screens, the submenu items hierarchy will be displayed.