Jump to content

How to exclude code injection on Home page?

Recommended Posts

Site URL: https://www.twentyoneknots.com

Good morning all,

I have a piece of code that enables 'chat' functionality on our website.  This code needs to be imbedded before the </head> tag.  The code needs to be applied to the 'footer' section of every page (Settings -> Advanced -> Code Injection -> Footer).

Question is, how can I exclude code from being injected on the home page (as I would like it on all my other pages)?

Thank you.

JS

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

On 6/9/2020 at 8:22 PM, JSDorais said:

Site URL: https://www.twentyoneknots.com

Good morning all,

I have a piece of code that enables 'chat' functionality on our website.  This code needs to be imbedded before the </head> tag.  The code needs to be applied to the 'footer' section of every page (Settings -> Advanced -> Code Injection -> Footer).

Question is, how can I exclude code from being injected on the home page (as I would like it on all my other pages)?

Thank you.

JS

Hi there

The index page has a unique class name in body indicate it's role we may take advantage of that

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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.