How do I change my templates in SquareSpace?

I am hosting my blog on SquareSpace and I need to add a <Script> tag in the footer of each post.

In the middle of this <Script> tag, I need to replace the value with a permalink for the current post.

So on my home page where I show 5 posts I need this & lt; Script> to render 5 times, each time with a permalink of the corresponding column inside it.

In wordpress I can directly edit the HTML of posts and I can do:

<script type="text/javascript">
    var myVar = "<?php the_permalink() ?>";
    ... more code ...


How can I do this with SquareSpace?
I have not found anywhere to edit templates directly.



source to share

1 answer

I'm not really sure what you want to do or how to do it in Squarespace, but here are some tips / resources:

If you are logged in and go to your blog page, go to the "Structure edit mode" by clicking the cubes icon in the upper right corner of the screen, then you can go to the "Customize this page" page on the blog page. In the configuration settings for your blog, you can add a Permalink button at the bottom of each post.

If you login and go to "Website Configuration" in the upper left corner, go to "Website Settings> Enter Code", you can select different areas to edit. You could do what you need here You may need to update your account to access the specific code entry point that you want to change.

Another option is to just use the code entry point (without having to update the account) to apply the script in some way.

Squarespace's great resource is a developer forum at

Hope this helps!



All Articles