Jump to content

ADDING CUSTOM CODE

Recommended Posts

Yup, you can do that. When I was testing with my FAQ accordion I had divs, JS and CSS styling all working fine within a single code block on one page.

I then hide all my code blocks (the space they use) by removing the padding site wide:

//Remove Padding from ALL code blocks
  .code-block {
    padding: 0!important;}

 

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.