RAD_Design Posted January 31, 2023 Share Posted January 31, 2023 (edited) Hi SS Circle trust, How can I adjust the line weight of the underline on current state navigation links? Have tried some older code, but no success. Site: lettuce-hexagon-lw6p.squarespace.com PW: Ruello2023! Thank you in advance! Rad. 🙏 Edited January 31, 2023 by RAD_Design Wrong text for contributors to check Link to comment
Beyondspace Posted January 31, 2023 Share Posted January 31, 2023 1 hour ago, RAD_Design said: Hi SS Circle trust, How can I adjust the line weight of the underline on current state navigation links? Have tried some older code, but no success. Site: lettuce-hexagon-lw6p.squarespace.com PW: Ruello123! Thank you in advance! Rad. 🙏 Wrong password, Can you check it again? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
RAD_Design Posted January 31, 2023 Author Share Posted January 31, 2023 Edited in the original post. Sorry! Link to comment
Solution Beyondspace Posted January 31, 2023 Solution Share Posted January 31, 2023 You can try adding to Home > Design> Custom Css body:not(.header--menu-open) .header-nav-item--active>a { background-size: 1px 4px; } Press 👍 or mark this answer as solution to help another one too pbjameson 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Beyondspace Posted January 31, 2023 Share Posted January 31, 2023 My testing pbjameson 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
RAD_Design Posted January 31, 2023 Author Share Posted January 31, 2023 Thank you @Beyondspace this worked perfectly on Desktop! Any idea how I would adjust for mobile view also? Cheers! RAD. 🙏 Link to comment
tuanphan Posted February 3, 2023 Share Posted February 3, 2023 Use this code for mobile .header-menu-nav-item--active .header-menu-nav-item-content { background-size: 1px 4px !Important; } pbjameson 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!) Link to comment
pbjameson Posted March 21 Share Posted March 21 @Beyondspace This did the trick for the underline that appears under the name of the page you're on, but is there a way to transform the (growing/crawling) rollover underline to the same thickness? Link to comment
Beyondspace Posted March 22 Share Posted March 22 Can you share your site so I can take a look? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
pbjameson Posted March 22 Share Posted March 22 Sure, we're still developing it, but I made it available to see with a password: mindmedicineministry.squarespace.com password: testing-1-2-3 Link to comment
tuanphan Posted March 25 Share Posted March 25 On 3/23/2024 at 1:31 AM, pbjameson said: Sure, we're still developing it, but I made it available to see with a password: mindmedicineministry.squarespace.com password: testing-1-2-3 You can use this CSS code div.header-nav-item>a:after { height: 4px !important; } pbjameson 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!) Link to comment
pbjameson Posted March 27 Share Posted March 27 Excellent. Thanks, @tuanphan. Ugh, now I'm noticing there's yet another place this underline appears (in the drop-down menu), Do you have code for that? Also, is there an option to turn off these underlines at any level? I think I like it appearing for the current page, but less interested in the rollover underlines… Link to comment
tuanphan Posted March 29 Share Posted March 29 On 3/28/2024 at 3:50 AM, pbjameson said: Excellent. Thanks, @tuanphan. Ugh, now I'm noticing there's yet another place this underline appears (in the drop-down menu), Do you have code for that? Also, is there an option to turn off these underlines at any level? I think I like it appearing for the current page, but less interested in the rollover underlines… You can use this CSS code to remove it span.header-nav-folder-item-content { background-image: 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!) Link to comment
pbjameson Posted April 12 Share Posted April 12 This code didn't remove any of the underlines as far as I could tell. Maybe the other code I've used (above) overwrites that? I'm still interested in being able to control the underline thickness of the dropdown items mostly, but also curious if any/all of these underlines in the nav can be turned off (in the regular settings or with custom code)? Link to comment
Beyondspace Posted April 12 Share Posted April 12 3 hours ago, pbjameson said: This code didn't remove any of the underlines as far as I could tell. Maybe the other code I've used (above) overwrites that? I'm still interested in being able to control the underline thickness of the dropdown items mostly, but also curious if any/all of these underlines in the nav can be turned off (in the regular settings or with custom code)? You can try the following CSS code .tweak-global-animations-animation-type-flex .header-nav-folder-item a::after { content: none; } Let me know how it works pbjameson 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
pbjameson Posted April 15 Share Posted April 15 Thanks @Beyondspace that bit of code did change the weight of the rollover underline on the dropdown items, but not the underline on the on-state item. So I tweaked some of the code @tuanphan shared above to cover that and got a decent result, but I don't really know what I'm doing: .header-nav-folder-item--active .header-nav-folder-item-content { background-size: 1px 2px !Important; } (I changed the dropdown underline to 2 px because the 3 px was feeling cramped because it doesn't have the same distance from the type as the top nav items.) There is an odd rollover "overlap" on the page in the dropdown that already has an underline (on-state) that I wish wasn't there, but it's functional: https://www.mindmedicineministry.org/practical-classes Link to comment
tuanphan Posted April 18 Share Posted April 18 On 4/15/2024 at 9:06 PM, pbjameson said: Thanks that bit of code did change the weight of the rollover underline on the dropdown items, but not the underline on the on-state item. So I tweaked some of the code @tuanphan shared above to cover that and got a decent result, but I don't really know what I'm doing: .header-nav-folder-item--active .header-nav-folder-item-content { background-size: 1px 2px !Important; } (I changed the dropdown underline to 2 px because the 3 px was feeling cramped because it doesn't have the same distance from the type as the top nav items.) There is an odd rollover "overlap" on the page in the dropdown that already has an underline (on-state) that I wish wasn't there, but it's functional: https://www.mindmedicineministry.org/practical-classes I see it looks fine now. Did you solve all problem? Or you need to increase underline weight on dropdown items? 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!) 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