Skip to content

Nynaeve Theme Update: Multi-Level Dropdowns, Enhanced Text Hover, and Better Dropdown Styling

By Jasper Frumau

Nynaeve Theme Update: Multi-Level Dropdowns, Enhanced Text Hover, and Better Dropdown Styling

Published: February 2026

Author: Imagewize Team

Category: WordPress Development, Theme Development, Web Design

Series: Nynaeve Theme Updates

Introduction

We’ve just merged pull request #102 into the Nynaeve theme repository, bringing significant improvements to the theme’s navigation system and visual styling. This update introduces multi-level dropdown menus, enhanced text hover effects, and better dropdown background colors – all designed to improve user experience and provide web agencies with more powerful tools for their clients.

What’s New in Version 2.1.0

1. Multi-Level Dropdown Navigation

The most significant feature in this update is the implementation of unlimited nested dropdown menus using a recursive Blade component approach.

Key Features:

  • Recursive Menu Component: Created a new menu-item.blade.php component that recursively renders itself for nested children
  • Unlimited Nesting Depth: Users can now create menu structures with unlimited levels (e.g., RESOURCES → Themes → Nynaeve Theme → Sub-themes)
  • Mobile Accordion Support: Enhanced checkbox-based accordion to support nested expansion with parent + child checkboxes
  • Desktop Hover Chain: Implemented cascading hover selectors for unlimited nesting levels
  • Smart Positioning:
    • First-level dropdowns display below parent menu items
    • Second-level+ dropdowns display to the right of parent items
    • No gap between parent and nested dropdowns
  • Chevron Direction Control: Added data-level attribute to chevrons for proper rotation:
    • Level 0 (top-level): rotates down (0deg) → up (180deg) on hover
    • Level 1+ (nested): always points right (-90deg rotation)
  • Z-Index Management: Progressive z-index values (50, 60, 70) for proper layering
  • Overflow Visibility: Nested dropdowns can extend outside parent containers

Code Architecture:

Before: Menu items rendered inline with duplicate code for each level (~70 lines of duplicated code)

After: Single recursive menu-item.blade.php component handles all nesting levels (~72 lines of reusable component)

This refactoring follows DRY (Don’t Repeat Yourself) principles, making the code cleaner, easier to maintain, and more extensible.

2. Enhanced Dropdown Background Colors

We’ve improved the visual distinction between header and dropdown menus with a custom background color:

  • New Color: Changed from neutral-900 (black) to custom dropdown-bg: '#1a2332' (dark blue-gray)
  • Visual Polish: Added rounded corners (lg:rounded-sm) and box shadows to all dropdown levels
  • Consistency: Ensured all dropdown items have identical solid background colors across all nesting levels
  • Brand Connection: Blue-gray tone provides subtle brand alignment while maintaining readability

The new dropdown background creates a more professional appearance and better visual hierarchy.

3. Improved Text Hover Effects

The update includes enhanced hover color effects for dropdown menu items at different nesting levels:

  • Level 1 dropdown items: hover background color changes to bg-neutral-800
  • Level 2 dropdown items: hover background color changes to bg-neutral-700
  • Level 3+ dropdown items: hover background color changes to bg-neutral-600

These visual feedback cues provide depth indication for nested menu structures, making navigation more intuitive for users.

Technical Implementation

Files Modified:

  1. menu-item.blade.php (NEW): Recursive component for menu rendering
  2. navigation.blade.php: Simplified to use recursive component
  3. app.css: Enhanced CSS for nested dropdowns (lines 760-820)
  4. tailwind.config.js: Added dropdown-bg custom color
  5. CHANGELOG.md: Updated with detailed documentation

CSS Innovations:

The implementation uses several advanced CSS techniques:

/* Nested mobile submenu expansion */
.submenu-toggle-checkbox:checked ~ .submenu-list .submenu-toggle-checkbox:checked ~ .submenu-list {
  grid-template-rows: 1fr;
}

/* Desktop hover behavior for submenu (opacity fade) */
.group:hover > .submenu-list {
  opacity: 1;
  pointer-events: auto;
}

/* Second level dropdowns - show when hovering first level menu item */
.group:hover > .submenu-list .group:hover > .submenu-list {
  opacity: 1;
  pointer-events: auto;
}

/* Third level and deeper dropdowns */
.group:hover > .submenu-list .group:hover > .submenu-list .group:hover > .submenu-list {
  opacity: 1;
  pointer-events: auto;
}

Use Cases for Web Agencies

1. Complex Corporate Websites

Agencies can now create sophisticated navigation structures for corporate clients:

About Us
  → Our Company
  → Leadership Team
  → Company History
    → Founding Years
    → Recent Milestones
    → Future Vision
  → Careers
    → Job Openings
    → Employee Benefits
    → Culture

2. E-commerce Navigation

Online stores benefit from organized product hierarchies:

Products
  → Clothing
    → Men
      → T-Shirts
      → Shirts
      → Pants
    → Women
      → Dresses
      → Tops
      → Bottoms
  → Accessories
  → Sale Items

3. Educational Institutions

Schools and universities can structure navigation by department and program:

Academics
  → Undergraduate
    → Majors
    → Minors
    → General Education
  → Graduate
    → Master's Programs
    → PhD Programs
    → Certificates
  → Faculty
    → Directory
    → Research
    → Publications

4. Government and Non-Profit Organizations

Complex organizations can present information in logical hierarchies:

Services
  → Health
    → Medical Programs
    → Mental Health
    → Public Health
  → Housing
    → Affordable Housing
    → Homelessness Prevention
    → Rent Assistance
  → Education
    → Youth Programs
    → Adult Education
    → Literacy

Benefits for Content Creators

Easy to Use

  • No custom code required
  • Works with standard WordPress menu system
  • Visual feedback makes navigation intuitive
  • Mobile and desktop responsive

Flexible

  • Unlimited nesting levels
  • Customizable colors and styling
  • Progressive disclosure of menu items
  • Smooth animations and transitions

Professional

  • Clean, modern design
  • Consistent visual hierarchy
  • Accessible and keyboard-navigable
  • Follows web standards and best practices

Migration Guide

For Existing Nynaeve Users

The update is backward compatible. Existing menus will continue to work as before, but you can now add additional nesting levels if desired.

To upgrade:

  1. Update the theme to version 2.1.0
  2. Go to Appearance → Menus in WordPress admin
  3. Add nested menu items by dragging items under parent items
  4. Save your menu
  5. Clear any caching plugins

For New Implementations

New sites can take full advantage of the multi-level navigation from day one:

  1. Install Nynaeve theme
  2. Go to Appearance → Menus
  3. Create your menu structure with nesting
  4. Assign to desired menu location
  5. Customize colors in theme settings if needed

Performance Considerations

The recursive component approach actually improves performance:

  • Reduced code size: 70 lines of duplicated code → 72 lines of reusable component
  • Fewer HTTP requests: Single component file instead of multiple
  • Better caching: Consistent component structure improves browser caching
  • Simplified rendering: WordPress processes fewer template files

Browser Compatibility

The implementation has been tested on:

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)
  • Mobile browsers (iOS Safari, Chrome for Android)

Accessibility Features

The update maintains and improves accessibility:

  • Proper ARIA attributes (aria-haspopup, aria-expanded)
  • Keyboard navigable menus
  • Screen reader friendly labels
  • Sufficient color contrast
  • Focus states for keyboard navigation
  • Semantic HTML structure

Future Enhancements

We’re already planning additional navigation improvements:

  • Mega Menus: Expandable grid layouts for complex content
  • Icon Support: Font Awesome or custom SVG icons for menu items
  • Search Integration: Built-in search in dropdown menus
  • User-Specific Menus: Personalized navigation based on user roles
  • Animation Customization: Control over hover animations and transitions

Conclusion

Pull request #102 represents a significant leap forward for the Nynaeve theme, particularly for web agencies building complex websites for their clients. The multi-level dropdown navigation system provides the flexibility needed for sophisticated information architectures, while the enhanced styling creates a more professional and intuitive user experience.

Key Takeaways:

  • Unlimited nesting for complex menu structures
  • Better visual hierarchy with improved colors and hover effects
  • Cleaner code with recursive component architecture
  • Enhanced UX with smart positioning and animations
  • Backward compatible – existing sites work without changes
  • Performance optimized – reduced code duplication
  • Accessible – follows web standards and best practices

The Nynaeve theme continues to evolve as a powerful tool for web agencies, combining elegant design with robust functionality. We’re excited to see what our users will build with these new capabilities!

About Nynaeve Theme

Nynaeve is a modern WordPress theme built on the Sage framework, designed for digital agencies and web professionals who need flexible, industry-specific solutions. With a focus on clean code, performance, and user experience, Nynaeve empowers content editors to build beautiful, on-brand websites without touching code.

GitHub Repository: https://github.com/imagewize/nynaeve

Live Demo: current website

Theme Page: https://imagewize.com/themes/nynaeve-theme/

Tags: WordPress, Theme Development, Navigation, Dropdown Menus, Web Design, UX Design, Responsive Design, Multi-Level Navigation, Sage Framework, Web Agencies, Nynaeve Theme

Leave a Reply