Drupal Solo Theme - How To Create Custom Menu Twig Template

Опубликовано: 21 Июль 2026
на канале: Alaa Haddad's Austin Drupal Theme & Module Tips
609
7

Custom Drupal Development Services | Flash Web Center, LLC
Looking for top-notch custom Drupal development? Our team of expert Drupal developers delivers tailor-made solutions to meet your unique business needs. Get custom Drupal development services that drive results. Our experienced developers specialize in custom modules, themes, and high-performance Drupal websites. https://flashwebcenter.com/
Exploring Different Types of User-Friendly Menus for Web Design
Link-based Menu: Primarily used for displaying hyperlinks.
Basic Menu: Ideal for single-tier menus; it is non-responsive and maintains a consistent appearance on screens of all sizes.
Standard Menu: Renders horizontally and it is multi-tiered navigation. It's responsive and comes in two formats: dropdowns that reveal on hover and dropdowns that require a click to display.
Sidebar Menu: Appears vertically and retains its layout on both small and large devices.
Mega Menu: Designed for complex, multi-tiered navigation. It's responsive and comes in two formats: dropdowns that reveal on hover and dropdowns that require a click to display.
The Drupal theme "Solo" offers a wealth of customizable features, particularly in its menu settings, catering to a diverse range of user preferences and website design requirements. Here's a detailed look at the multiple features available for both the Horizontal and Sidebar Main Navigation options:

Horizontal Main Navigation Features
Hover to Show Main Menu Drop-downs: This feature, enabled via a checkbox, allows users to display the main menu drop-downs when hovering over them with the mouse, rather than having to click. This is particularly important for users who prioritize ease of navigation and speed. It enhances the user experience, especially for visitors who are accustomed to quick interactions and prefer immediate access to sub-menus without additional clicks.
Border for Each Menu Item: Another checkbox enables users to apply a one-pixel border around each menu item, with the border color following that of the region. This feature is vital for users who focus on visual distinction and structure in their menu design. The borders help in clearly defining each menu item, making the navigation more accessible and visually appealing, especially on complex websites with extensive menus.
Even Space Distribution Between Menu Items: This option distributes the space evenly between menu items, aligning the first item at the start and the last at the end of the line. This feature is essential for users who value a clean, organized look in their menu. It ensures a balanced and harmonious appearance, making the menu aesthetically pleasing and easy to navigate.
Mega Menu Transformation: A checkbox transforms the main menu drop-down into a Mega Menu, requiring a hierarchical three-level menu structure. This feature is crucial for websites with extensive content, allowing for a more organized and user-friendly presentation of large numbers of menu items. The Mega Menu facilitates easier navigation and enhances the user experience by efficiently categorizing content.
Mega Menu Layout Options: Users can select from various layout configurations for the Mega Menu, such as ('1 Column - 100%'), ('2 Columns - 50%, 50%'), ('2 Columns - 67%, 33%'), ('2 Columns - 75%, 25%'), ('2 Columns - 80%, 20%'), ('2 Columns - 33%, 67%'), ('2 Columns - 25%, 75%'), ('2 Columns - 20%, 80%'), ('3 Columns - 33.3%, 33.3%, 33.3%'), ('3 Columns - 25%, 50%, 25%'), ('3 Columns - 20%, 60%, 20%'), ('4 Columns - 25%, 25%, 25%, 25%'), ('4 Columns - 16.6%, 33.3%, 33.3%, 16.6%'), ('4 Columns - 33.3%, 16.6%, 16.6%, 33.3%'), ('4 Columns - 16.6%, 33.3%, 16.6%, 33.3%'). This level of customization is important for tailoring the menu's appearance to the specific content and structure of the site, ensuring that the menu not only looks good but is also functional and aligns with the user's navigational strategy.
Second Menu Level as Header: This checkbox option emphasizes the categories in the Mega Menu by displaying the second level as headers. This is important for sites that need to distinguish between different sections or categories within the menu, making it easier for users to scan and find what they are looking for.
Sidebar Main Navigation Features