Jump to content

Hello, I would like to exclude my home page from border custom css

Go to solution Solved by Ziggy,

Recommended Posts

Hello, 

On my website I added a custom css but I would like to exclude my homepage from it rather than manually enter every single section id to the code - how can I apply to all other pages and exclude the homepage ? 

}
.page-section{border-bottom :2px double white}
  }

The section ID : section[data-section-id="6396e4c6c8f60153c43151f6"]

The collection ID : #collection-6396e4aa8baa4967b3b2c364

password TEST

Thank you in advance. 

Link to comment

Try this Custom CSS:

body:not(#collection-6396e4aa8baa4967b3b2c364) {
  .page-section {
    border-bottom:2px double white;
  }
}

The :not(#class) allows you to exclude pages or styles (any class or ID) from applying to a certain area.

Let me know if that works, give me a thumbs up if it does! Thanks!

Please like and upvote if my comments were useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
Buy me a coffee

Link to comment
  • Solution
Just now, Maxnewby said:

Hello Ziggy !
Thank you very much it works ! 

No problem! Thanks for the reaction, can you mark my post as the solution to your question too?

Please like and upvote if my comments were useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
Buy me a coffee

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.