Guest Posted March 11, 2021 Posted March 11, 2021 Site URL: https://www.aureliaregina.com/ Hello all! My name is Regina, I have a question for site navigation when I use on mobile phone. My question is how to remove those underline when I see on mobile phone? (see screenshoot for mobile phone view) Is there any CSS code to remove this? Because when I see on desktop view, everything seems fine. I already searched many answer on this forum, but it doesnt applicable to my squarespace website. My website is : aureliaregina.com Please help me, any answers or coding will be appreciated. Thank you!
Solution tuanphan Posted March 21, 2021 Solution Posted March 21, 2021 On 3/11/2021 at 3:02 PM, aureliaregina98 said: Site URL: https://www.aureliaregina.com/ Hello all! My name is Regina, I have a question for site navigation when I use on mobile phone. My question is how to remove those underline when I see on mobile phone? (see screenshoot for mobile phone view) Is there any CSS code to remove this? Because when I see on desktop view, everything seems fine. I already searched many answer on this forum, but it doesnt applicable to my squarespace website. My website is : aureliaregina.com Please help me, any answers or coding will be appreciated. Thank you! Hi. Add to Design > Custom CSS /* remove menu underline */ div.header-menu-nav-item a { text-decoration: none !important; border: none !important; background-image: none !important; } worldwideweb 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Guest Posted April 3, 2021 Posted April 3, 2021 OMG! IT'S WORKED ! Thank you for replying my message. Finally it's work to remove the underline menu. Thank you so much tuanphan ! for helping me 😄
kdear Posted May 23, 2022 Posted May 23, 2022 THANK YOU Tuanphan - this just helped me too! tuanphan 1
CooperBlack Posted June 9, 2022 Posted June 9, 2022 I have this as my mobile navigation: .header-menu-nav-item a { font-size: 2rem !important; text-align:left !important; background-color: rgba(0,0, 0, 0.4) !important; color: #dfe0e1 !important; text-decoration: none !important; } Everything works, but the text is still underlined. I'd also like to make the active link another color. Site https://raccoon-oarfish-szer.squarespace.com Pwd: Largeosity
CooperBlack Posted June 10, 2022 Posted June 10, 2022 I figured out the coloring to the active link on the mobile navigation. But I still get an underline. .header-menu-nav-item--active a { text-decoration: none !important; color: #BF6403 !important; }
tuanphan Posted June 13, 2022 Posted June 13, 2022 On 6/10/2022 at 10:40 PM, CooperBlack said: I figured out the coloring to the active link on the mobile navigation. But I still get an underline. .header-menu-nav-item--active a { text-decoration: none !important; color: #BF6403 !important; } Add this CSS nav.header-menu-nav-list .header-menu-nav-item * { background-image: none !important; text-decoration: none !important; border: none !important; } AshwinG, moonlitdesign, EddiOS42 and 1 other 3 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
cherylr Posted February 28, 2023 Posted February 28, 2023 On 6/13/2022 at 4:28 AM, tuanphan said: Add this CSS nav.header-menu-nav-list .header-menu-nav-item * { background-image: none !important; text-decoration: none !important; border: none !important; } Hey when I add this code, it gets rid of the underline but also the dropdown arrow any idea how to remove JUST the underline and not the arrow?
tuanphan Posted March 5, 2023 Posted March 5, 2023 On 3/1/2023 at 2:28 AM, cherylr said: Hey when I add this code, it gets rid of the underline but also the dropdown arrow any idea how to remove JUST the underline and not the arrow? Use this nav.header-menu-nav-list .header-menu-nav-item a { background-image: none !important; text-decoration: none !important; border: none !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
cherylr Posted March 30, 2023 Posted March 30, 2023 Thank you! I didn't see your reply until just now. Your help is greatly appreciated!
JelenaDonko Posted November 15 Posted November 15 @tuanphan I have a similar problem. I used the following code to remove underline and add a custom font for active links in the navigation which works perfectly on desktop. However it does not translate into mobile. Could you maybe help? here is the code: body:not(.header--menu-open) .header-nav-item--active > a, body:not(.header--menu-open) .header-nav-folder-item--active .header-nav-folder-item-content { background-image: none; font-family: 'Saol-light-italic'; } My website is: www.ofatomsandlines.com
tuanphan Posted November 19 Posted November 19 On 11/16/2024 at 2:19 AM, JelenaDonko said: @tuanphan I have a similar problem. I used the following code to remove underline and add a custom font for active links in the navigation which works perfectly on desktop. However it does not translate into mobile. Could you maybe help? here is the code: body:not(.header--menu-open) .header-nav-item--active > a, body:not(.header--menu-open) .header-nav-folder-item--active .header-nav-folder-item-content { background-image: none; font-family: 'Saol-light-italic'; } My website is: www.ofatomsandlines.com You can use this CSS code nav.header-menu-nav-list [aria-current="page"] div { background-image: none !important; font-family: 'Saol-light-italic' !important; } JelenaDonko 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
JelenaDonko Posted November 20 Posted November 20 On 11/19/2024 at 11:18 AM, tuanphan said: You can use this CSS code nav.header-menu-nav-list [aria-current="page"] div { background-image: none !important; font-family: 'Saol-light-italic' !important; } It worked out perfectly! thank you so much! The dropdown folder "Works" still shows an underline on mobile and does not appear in the custom italic font when one of the subpages (2024, 2023, 2022, 2021) is active. Is there a possibility to include the "Works" as well? The subpages work just fine. Thank you as always!
tuanphan Posted November 21 Posted November 21 18 hours ago, JelenaDonko said: It worked out perfectly! thank you so much! The dropdown folder "Works" still shows an underline on mobile and does not appear in the custom italic font when one of the subpages (2024, 2023, 2022, 2021) is active. Is there a possibility to include the "Works" as well? The subpages work just fine. Thank you as always! With Work dropdown, use this code :is([aria-current="page"], [aria-current="true"]) .header-menu-nav-item-content { background-image: none !important; } JelenaDonko 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment