Home › Forums › Support › How to add underline on main menu when the item is active? This topic has 7 replies, 2 voices, and was last updated 3 years, 6 months ago by Leo. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts September 28, 2020 at 10:02 am #1462592 Gabriela How to add underline on main menu when the item is active? September 28, 2020 at 10:04 am #1462598 LeoStaff Customer Support Hi there, There isn’t underline added by default so I’d assume you’ve added some CSS for it. I’d need to see the site in question to be able to help. September 28, 2020 at 12:06 pm #1462743 Gabriela I updated the question September 28, 2020 at 12:08 pm #1462745 LeoStaff Customer Support Try this CSS: .main-navigation .main-nav ul li[class*="current-menu-"] > a { text-decoration: underline; } Adding CSS: https://docs.generatepress.com/article/adding-css/ September 28, 2020 at 12:09 pm #1462746 Gabriela Now, how do I remove it from the submenu? September 28, 2020 at 12:11 pm #1462749 LeoStaff Customer Support Try this instead: .main-navigation .main-nav > ul > li[class*="current-menu-"] > a { text-decoration: underline; } September 28, 2020 at 12:13 pm #1462752 Gabriela Thank you!!!! September 28, 2020 at 12:14 pm #1462754 LeoStaff Customer Support No problem 🙂 Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In