Squarespace CSS: How to find page ID and class selectors
If you are trying to customise your Squarespace website with CSS style changes then you are going to then you are going to need to know how to find ID and class selectors.
Here is a guide on how to find ID and class selectors for your Squarespace website:
The easiest way to find ID and class selectors for your Squarespace website is with the Google Chrome browser. Open Google chrome and login to your website.
If you don’t use Google Chrome you can download it here.
We also recommend this useful extension to find block ID’s: Squarespace Collection/Block Identifier
Find your specific selector
The most common selector we use when customising Squarespace websites is the page section ID. To find the ID of a page section on your Squarespace website just right click on the background of section that you want select and click on ‘inspect element’ from the drop down menu.
The developer tools window will open and usually “content wrapper” section will be highlighted. If you scroll up from there or look for the section that begins with:
<section class=page-section
Click on this section and about half way down you will see something like this:
data-section-id="xxxxxxxxxxxxxxxxxxxxxxx
The class is: page-section
The section ID is: data-section-id="5e1230f488456a2a6f5faf3b"
each page section ID will have a different code where X is shown.
How to use your specific selector
We can use this page section class and ID to customise the styles in this section only. We just add this code to your custom CSS. We will use the ‘blog read more’ link as a random example.
.page-section[data-section-id="5e1230f488456a2a6f5faf3b"] {
h3 {color:red;}}
If you have any questions or need any help with your Squarespace website design post a comment below or get in touch now.
Adding Google Reviews to your Squarespace website shows potential customers that you are a trusted and reliable business.
Are you looking for a way to boost your business on LinkedIn?
When it comes to building your website, two popular platforms stand out: Squarespace and Shopify.
If you're not already using GA4, it's important to upgrade as soon as possible.
In this post, we'll explore the key factors to consider when deciding whether to upgrade to Squarespace 7.1.
Let’s explore some practical and effective marketing strategies for websites that can help you stand out in the crowded online world.
In this guide, we'll walk you through the best and most frequently used apps for your Shopify store.
Making a great first impression should be one of the main concerns you have as a business owner.
Are you wondering how to a customise the summary carousel arrows in Squarespace 7.1?
Are you wondering how to add custom icons to your Squarespace website? Well, you have come to the right place.
Are you wondering how to add Font Awesome icons to your website? The most popular way to add font icons…
Squarespace does a lot right when it comes to SEO, it’s perfectly possible to optimise a Squarespace website…
Adding images to your Squarespace website navigation is a great look and can be easily achieved
If you are trying to customise your Squarespace website with CSS you need to know how to find ID selectors.
Squarespace Email Campaigns can now be added to any plan. Powerful new features to extend your brand’s reach…
Here are 4 of our favorite “simple” Squarespace CSS code snippets. These were tested on Brine.
You can now manage your website from your phone or tablet with the Squarespace App. Potential lifesaver!
Squarespace is easy to use but there are still many benefits to hiring a professional web designer to build your website.