A user wants to modify the Modular theme’s menu hover effects by removing the underline and making text slightly lighter instead.
Solutions provided:
• Multiple CSS approaches were shared to remove the underline by targeting .menu-item__link:hover:after with border-bottom: none
• Opacity adjustment suggested using opacity: 0.7 on hover to achieve the lighter text effect
• Code should be added to either theme.liquid (within <style> tags above </body>) or base.css file
Follow-up issue:
The original solution worked for the main menu but not for submenu dropdown links. Additional CSS targeting .submenu-item__link:hover:after was provided to address submenu styling.
Status: The main menu issue appears resolved, with supplementary code offered for consistent submenu behavior. All solutions involve adding custom CSS to remove default underline styling and adjust hover opacity.
Summarized with AI on November 22.
AI used: claude-sonnet-4-5-20250929.
When hover over linked menu items an underline appears under the link. I want to remove the underline and just make the text turn slightly lighter (as seen in images)
Could someone please help me which code to add, thank you!!