Beatriz Caraballo

View Original

Find your unique page ID in squarespace

Want to add some CSS to just one page on your site, that's NOT an index section?

Don't want to add the code to your page's settings?

Then you're going to want to find your page's unique ID to make all the changes you like on just one page of your Squarespace site.

But don't worry, it's pretty easy to find.

And if you're wondering, yes, this applies to any non-index page of any template!

See this content in the original post

First, you need to either open your site on a new window logged out from Squarespace, or hide your Squarespace dashboard.

Then right-click anywhere on the page and choose "View Source".

Now, hit Ctrl+F or Cmd+F and search for "body" to locate your opening body tag  .

The ID you see as the attribute for that body tag is your page's ID.

Copy that string of characters that starts with "collection-" and use it as the ID selector in your CSS window like so:

See this content in the original post

Note: your string of numbers will be unique to your page, the one in this example won't work for you

See this content in the original post

Knowing your page's ID, you can now choose which element you want to style and add your changes as usual!

For example, if you want to edit the h1 of a banner like in this post, you can use this:

See this content in the original post

 

Thanks for reading!

Until next time,

B.