Mica77 Posted June 26 Share Posted June 26 I wanted to change the color of the underline from the top menu by ussing this custom css: /* change header nav active style */ .header-nav-item--active a { background-image: none !important; } /* Change the underline color of the top menu links */ .header-nav-item a { position: relative; text-decoration: none !important; color: #000000; /* Set the color of the link */ } .header-nav-item a::after { content: ""; position: absolute; left: 0; bottom: -2px; /* Adjust the positioning of the underline */ width: 100%; height: 2px; /* Adjust the height of the underline */ background-color: #CE099F; /* Set the color of the underline */ visibility: hidden; opacity: 0; transition: opacity 0.4s; } .header-nav-item a:hover::after, .header-nav-item a:focus::after, .header-nav-item--active a::after { visibility: visible; opacity: 1; } /* Optional: Change the underline color when the link is active or focused */ .header-nav-item--active a::after { background-color: #CE099F; /* Set the color of the underline when the link is active */ } it is almost working, but the lenght of the underline doesn't match the text that's on top, but the widht of the box. How can I change it so the underline goes only below the text. I am including a video of the error to be more clear Recording 2023-06-25 211613.mp4 Link to comment
tuanphan Posted June 26 Share Posted June 26 What is site url? We can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Mica77 Posted July 3 Author Share Posted July 3 thank you: https://www.giselarozental.com/ Link to comment
tuanphan Posted July 5 Share Posted July 5 On 7/4/2023 at 2:35 AM, Mica77 said: thank you: https://www.giselarozental.com/ Keep above code + add this code under div.header-nav-item a { display: inline-block; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Mica77 Posted July 20 Author Share Posted July 20 @tuanphan great, this worked, thank you so much!! It is not working on the mobile version, do you know how can I fix that? Link to comment
tuanphan Posted July 22 Share Posted July 22 On 7/20/2023 at 10:05 PM, Mica77 said: @tuanphan great, this worked, thank you so much!! It is not working on the mobile version, do you know how can I fix that? I see you solved with this code? .header-menu-nav-item-content { position: relative; display: inline-block; pointer-events: none; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Mica77 Posted July 26 Author Share Posted July 26 Hi, when I add that code then I see a black line (the original from the template that I "turn off" by adding: /* change header nav active style */ .header-nav-item--active a { background-image: none !important; } the fuchsia underline is not working on the mobile version, maybe because there is no "hover" but tap on mobile? I don't know Link to comment
tuanphan Posted July 27 Share Posted July 27 Yes. Mobile has no hover. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Mica77 Posted August 4 Author Share Posted August 4 thank you, is there any way to have on the mobile version the fucsia underline on the top menu when tapping it? Link to comment
tuanphan Posted August 6 Share Posted August 6 Try this CSS code div.header-menu-nav-item a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background-color: #ce099f; visibility: hidden; opacity: 0; transition: opacity .4s; } div.header-menu-nav-item a:hover::after { visibility: visible; opacity: 1; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment