How to share code on a Squarespace website // Squarespace Code Block Tutorial

Published: 21 July 2024
on channel: InsideTheSquare with Becca Harpain
105
1

This tutorial is about a code block - NOT page header code injection. For support with code injection ,check out this article:

You can use a Squarespace code block to add HTML, Javascript, and CSS to an individual page on your Squarespace site.

Code blocks are a great way to add custom elements to your Squarespace site. You can use them to display code snippets, embed interactive features, or add special styling.

Two important things to know:
- To run a Javascript code, you need to be subscribed to a business or commerce plan; this feature is not supported for Squarespace sites on a personal plan.
- Squarespace doesn't offer support for custom code troubleshooting. If you run into issues, try searching online resources like the Squarespace forum at

How to add a code block to Squarespace
1. Click the add block option on a page section, or the plus sign inside classic editor.*
2. Select the code option form the list of content blocks.
3. Double click on the block to edit the content, or select the pencil icon.
4. Remove the placeholder text taht says Hello, World! and add your own code here.
5. Toggle on display source code if you want the code to be visible to your site visitors.

If you are placing CSS or javascript in a code block, you'll need to use HTML mode and properly label your code. Check out the original article for more information:

Original blog post:
️ Learn how to use Squarespace:
More tutorials:
- - -
The term "Squarespace" is a trademark of Squarespace, Inc. This video was not approved or endorsed by Squarespace, Inc. I just really love their platform


Watch video How to share code on a Squarespace website // Squarespace Code Block Tutorial online without registration, duration 01 minute 42 second in high hd quality. This video was added by user InsideTheSquare with Becca Harpain 21 July 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 105 once and liked it 1 people.