Jump to content

how to apply one same code on multiple squarespace id's

Go to solution Solved by paul2009,

Recommended Posts

Hello,

im simply trying to loose an underline on a textlink  i.e. 
#block-7f84764a56c4274b098b;
a {
  text-decoration: none;
}

i have more of those, and thought, maybe i could do sth like this, that is apparently not working:

#block-096b91c3c447c862ff29;
#block-7f84764a56c4274b098b;
a {
  text-decoration: none;
}


does somebody know how i could add multiple ids referring to one code?

thanks in advance!

Link to comment
  • Solution

You can apply a style to multiple selectors by separating them with commas. For example:

#block-096b91c3c447c862ff29 a, 
#block-7f84764a56c4274b098b a {
  text-decoration: none;
}

 

About me: I'm Paul, a SQSP user for over 18 yrs and a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji below. Buying a coffee is optional.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment
51 minutes ago, LonniWong said:

Hello,

im simply trying to loose an underline on a textlink  i.e. 
#block-7f84764a56c4274b098b;
a {
  text-decoration: none;
}

i have more of those, and thought, maybe i could do sth like this, that is apparently not working:

#block-096b91c3c447c862ff29;
#block-7f84764a56c4274b098b;
a {
  text-decoration: none;
}


does somebody know how i could add multiple ids referring to one code?

thanks in advance!

 

If you add the CSS code on Custom CSS section then you can add like this also.

#block-096b91c3c447c862ff29, #block-7f84764a56c4274b098b {
  a{
    text-decoration: none;
  }
}

 

Screenshot_158.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment

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.