I have pages with the same links in the footer. If the client wants to change the link, I want to be able to just change it once in an uploaded file and have the footer do a call to that file to insert the code for the links. Does anyone know how to do this in SquareSpace?
I haven't used Squarespace, but I have used Shopify, Weebly and some others. They're all similar in that they all have their own templating language. It's unlikely that you would upload an actual .html file, but probably some "partial" that gets included.
If anyone else wants to know how to do this, I found an alternate method. I ended up using JQuery instead. I put it in the Settings>Advanced>Code Injection section.
In the footer section I added : <script> $("#includedContent").html("<center> - : : <a href='../page'>Go to Page</a> : : -");</script> This looks for the ID of includedContent and inserts the html code between the DIV. Single quotes must be used in the line of code.
Then in the footer section of each page I wanted the "Go to Page" code to appear I inserted : <div id="includedContent"></div> This is where I want the code to appear. Yours does not have to be in the footer,. It can go anywhere you can insert a code block.
So are you saying that Squarespace doesn't have an overall page template and a server-side template file that can be used to define the footer? Or if not for the footer, I thought Squarespace had something called Blocks that could be used for repeating content.
In any case, if you set up git using hte link above, it will make this incredibly easy to maintain.