Ecommerce Shopify WordPress Discussion

How to show a submenu in a second row below the main menu with CSS if it is part of the main menu's list? [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 5 days ago. This post was edited and submitted for review 4 days ago and failed to reopen the post: Original close reason(s) were not resolved Improve this question I want to implement a two row menu with WordPress where the second row is the submenu for an entry of the main menu. Submenus in WordPress are realized with two lists (ul with li elements) and the submenu is part of an li element of the main menu. Since it is nested in the main menu in the code (that is what WordPress gives me), is it even possible to show that menu below the main menu in a second row? Sure, I could show it on mouse hover with position: absolute (like nearly all submenus are implemented in WordPress), but I want the second row to stay visible after the link has been clicked. I somehow achieved this, but it only works on full desktop width. As soon as you make the screen smaller and the main menu line breaks, it completely messes up. Here is my example: Is it somehow possible to make the submenu always display within the element flow after the main menu (without position: absolute)?
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.