halfhide Posted September 13 Share Posted September 13 Site URL: https://apricots-reed-54hl.squarespace.com/ Hi there I have made a blog site with pages using the summary and tag-function to filter the blog posts. Is it possible that the underline in the main navigation menu stays active, when one clicks on a blog post? Site: https://apricots-reed-54hl.squarespace.com/ PW: webolsson Thank you very much. Alastair Link to comment
tuanphan Posted September 14 Share Posted September 14 Which menu item are you referring to? halfhide 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
halfhide Posted September 16 Author Share Posted September 16 Hi Tuanphan Thanks. All three. So when I click on a blogpost under DESIGN (or ARTWORK, PHOTOGRAPHY), the underline stays? So the viewer can see which category one is on. I have attached an image. Hope it makes sense. Thanks. Link to comment
tuanphan Posted September 18 Share Posted September 18 On 9/16/2024 at 6:55 PM, halfhide said: Hi Tuanphan Thanks. All three. So when I click on a blogpost under DESIGN (or ARTWORK, PHOTOGRAPHY), the underline stays? So the viewer can see which category one is on. I have attached an image. Hope it makes sense. Thanks. You will need to add code to all blog posts First, with Design https://apricots-reed-54hl.squarespace.com/design Edit 4 Posts belong Design > Add a Block > Choose Code > paste this code <style> header#header a[href="/design"] { background-image: linear-gradient(currentColor, currentColor); background-repeat: repeat-x; background-size: 1px 1px; background-position: 0 100% !important; } </style> You can try then if it works, I will send code for remain pages halfhide 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
halfhide Posted September 18 Author Share Posted September 18 That's great - it worked! Thanks! And if I want to style it, so it is a little thicker and more top-padding, do I add code the same place? Link to comment
tuanphan Posted September 19 Share Posted September 19 18 hours ago, halfhide said: That's great - it worked! Thanks! And if I want to style it, so it is a little thicker and more top-padding, do I add code the same place? You can adjust these lines halfhide 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
halfhide Posted September 23 Author Share Posted September 23 Great! Thanks. And now that I have you. Is there a way to keep the underline under the letters, so it doesn't stick out on either side. See attached. Thanks! Link to comment
halfhide Posted Tuesday at 01:21 PM Author Share Posted Tuesday at 01:21 PM Hi there. Do you know how to adjust this? Thanks! Link to comment
tuanphan Posted Wednesday at 12:23 AM Share Posted Wednesday at 12:23 AM It was harder than I thought You can use this extra CSS code .header-nav-item--active a { width: calc(~"100% - 3px") !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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment