Jump to content

Preventing Global Changes to Custom CSS for Summary Items and Summary Title

Go to solution Solved by creedon,

Recommended Posts

Site URL: http://www.readersinspired.com

Hi everyone!

I hope you are well. I am a bit stuck at the moment. I am looking for a way to use a custom CSS font and design of summary items and title on my site in a way that only affects pages under a specific folder (in my cause the "+Shop African Books," folder which include the following pages):

However the code I put in the the Design -> Custom CSS section of Squarespace  (see below) has resulted in a global change of all summary items and titles.

Is there a way this change to only affect the pages in the "+Shop African Books" folder and not additional parts of the site outside of this folder like it currently is now:

.summary-title {font-family:Serif; font-size: 1.5rem!important}
.summary-title {font-weight:bold}

.summary-item {box-shadow:5px 5px 15px #ddd} .summary-item:hover {box-shadow:5px 5px #aaa}

Link to comment
  • Solution

There are several ways to go.

You can use per-page code injection. Wrap your CSS in a style tag.

You can keep the CSS in Design > Custom CSS but make the selectors more specific.

Check out Heather Tovey's most excellent looking Squarespace ID Finder for a way to determine which elements you can target. For your case you could target a whole page or individual blocks.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.