lahbu Posted January 8 Share Posted January 8 I am trying to achieve a custom page title like linked in the URL. This blog provides the coding but im unsure of where to place this within Squarespace. Could someone please advise me correctly. Much appriciated 🙂 Link to comment
lahbu Posted January 8 Author Share Posted January 8 https://medium.com/@alperen.talaslioglu/changing-page-title-dynamically-when-user-changes-tab-5d372554377c Link to comment
paul2009 Posted January 8 Share Posted January 8 (edited) 21 hours ago, lahbu said: This blog provides the coding but im unsure of where to place this within Squarespace. This script goes in the FOOTER area of the Code Injection panel. As this panel is expecting HTML, you’ll need to place this script within “script tags” otherwise Squarespace won’t recognise it as a script. Did this help? Please give feedback by clicking an icon below  ⬇️ Edited January 9 by paul2009 Edited for clarity Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
lahbu Posted January 8 Author Share Posted January 8 11 hours ago, paul2009 said: This goes in the FOOTER area of the Code Injection panel. Did this help? Please give feedback by clicking an icon below  ⬇️ I pasted the code in the section you mentioned but it did not work. The footer now just shows the css on the page footer. You can see what I mean here https://www.lahbu.com.au/ Link to comment
Solution paul2009 Posted January 9 Solution Share Posted January 9 8 hours ago, lahbu said: The footer now just shows the css on the page footer The code in the article isn’t CSS. It is JavaScript. When you add it to the a code Injection panel, you need to place it within “script tags”, like this: <script> (JavaScript goes here instead of this comment) </script>  Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment