Home › Forums › Support › menu button This topic has 9 replies, 4 voices, and was last updated 1 year, 7 months ago by Leo. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts November 26, 2020 at 6:34 am #1549559 Jose Hi, I have created a buttton in the menu, but when I am in the page of that button, it changes its color, how can i fix it? http://luisentr-cp505.wordpresstemporal.com/ “REGALA SALUD” Regards, November 26, 2020 at 8:42 am #1550079 DavidStaff Customer Support Hi there, in your CSS change this: .main-navigation .main-nav ul li.nav-button a { background-color: #ff1e00; border: 2px solid #ff1e00; border-radius: 40px; color: #ffffff !important; line-height: 35px; } to: .main-navigation .main-nav ul li.nav-button a, .header-wrap #site-navigation:not(.toggled) .main-nav>ul>li.nav-button[class*="current-menu-"]>a { background-color: #ff1e00; border: 2px solid #ff1e00; border-radius: 40px; color: #ffffff !important; line-height: 35px; } Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ November 27, 2020 at 1:23 am #1551397 Jose But with that code I hace the button effect in all the pages i am. November 27, 2020 at 4:00 am #1551697 DavidStaff Customer Support Edited the CSS above – try that Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ November 27, 2020 at 7:43 am #1552620 Jose Okey, it is workin now. But when I hover over the button, backgroung anc color text are white, in my CSS I have it different, do you know what the problem can be? Regards, November 27, 2020 at 10:30 am #1553071 TomLead Developer Lead Developer Try adding this: .main-navigation .main-nav ul li.nav-button:hover a { color: #ff1e00 !important; } BTW – this method may be worth looking into when it comes to adding buttons to the navigation: https://docs.generatepress.com/article/generate_menu_bar_items/ Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development November 28, 2020 at 3:28 am #1554423 Jose Nothing… November 28, 2020 at 10:16 am #1555260 LeoStaff Customer Support I’m not seeing Tom’s CSS being added. When tested the code, it worked as expected: https://www.screencast.com/t/oQkbYjOG Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ November 29, 2020 at 9:17 am #1556785 Jose Now it is working, but it is strange, I have to write the code twice… It is weird November 29, 2020 at 11:20 am #1556997 LeoStaff Customer Support You shouldn’t have to write the same code twice. Glad it’s working though. Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In