Jump to content

Finding classes and IDs in code

Recommended Posts

I'm new to squarespace. Giving it a spin becuase I hear it's good. 

It seems like I'm not going to be able to realise the designs without using custom CSS. 

That's fine, I know my way around that. But my problem is how difficult it is to find the classes and IDs of elements. 

Ordinarily I'd just right click and inspect but the squarespace code in preview is so bundled up that you need to expand hundred and hundreds of divs to get to anything.

Is there an easier way? Like, am I missing a way of specifically defining CSS from the editor for specific elements?

And also, what use is CSS if you can't define class names. Am I missing something obvious. I probably am.

Link to comment

Hey Jake! I am a huge fan of customizing Squarespace with CSS. I have a little over 300 blog posts that specify the classes you're talking about: https://insidethesquare.co/squarespace-tutorials/

I also use this free chrome extension to grab block ids (not affiliated just a fan!): https://insidethesquare.co/chromeext 

And if you want some tips on when to use a selector/class vs a block id (and when to usee both!) check out this video overview specifically for Squarespace: 

And if you wanna grab my collection of classes for Squarespace, I have them all organized in a Notion doc you can get here: https://insidethesquare.co/css 

I hope all that info helps! Feel free to DM me if you have any questions about a specific project; I'm always looking for more tutorial ideas for my blog 😉

🤓 Creator of InsideTheSquare.co

🗺️ New to Squarespace? Get your free roadmap: insidethesquare.co/roadmap
🙋‍♀️ New to CSS? Learn the basics for free: insidethesquare.co/learn
️ Ready to go pro? Get my custom code collection: insidethesquare.co/css




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.