Menu design improvement

Created on 20 February 2025, 3 days ago

Hello Alaa,

after updating to new version and creating the side with your theme, I have another question.

Is it possible to change the menu in design from 2nd level to 3rd level as a line and not as a block?

Now:

New:

Rgds
Uwe

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Uwe Loyal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Uwe Loyal
  • πŸ‡©πŸ‡ͺGermany Uwe Loyal
  • πŸ‡ΊπŸ‡ΈUnited States flashwebcenter Austin TX

    Hello,

    The W3CSS theme and Solo theme are designed to support a three-level menu structure. The menu was not originally intended to accommodate a fourth level, which is why the behavior appears as it does in your screenshot. Since you have added a fourth level, you would need to create custom CSS to properly support this addition in the main menu.

    Best wishes,
    Alaa

  • πŸ‡©πŸ‡ͺGermany Uwe Loyal

    Thank you for the very quick answer.
    Which CSS I have to change?
    Can you give me some tipp's for changing.

    Rgds
    Uwe

  • πŸ‡ΊπŸ‡ΈUnited States flashwebcenter Austin TX

    Hello,

    Since there isn't a specific file or CSS to modify, you'll first need to create a custom sub-theme. Once that's set up, you can add support for a fourth-level menu. The next step is to debug using browser inspection tools to identify any styling issues.

    Make sure to test how the menu behaves on both large and small screens. For hover menus, you won’t need to add JavaScript, but for click-based menus, you may need to implement some JS to ensure proper functionality.

    Best wishes,
    Alaa

  • πŸ‡©πŸ‡ͺGermany Uwe Loyal

    Is the any description here on drupal.org ?

  • πŸ‡ΊπŸ‡ΈUnited States flashwebcenter Austin TX

    Hello,

    I don't think this would be added as a feature. However, I'm not sure if this would be a good fit for Drupal.org, as it seems more like pure CSS rather than something specific to Drupal. It might be helpful to look into how multi-level menus are typically developed. The good thing is that you're not creating the HTMLβ€”you're just applying CSS styles.

    Best wishes,
    Alaa

Production build 0.71.5 2024