Jump to content

Underline active on blog post

Recommended Posts

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. 

Skærmbillede 2024-09-16 kl. 13.52.40.png

Link to comment
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. 

Skærmbillede 2024-09-16 kl. 13.52.40.png

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

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
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.