Jump to content

Adding custom widget is not working

Recommended Posts

I am trying to add the following code to have my vet widget on my website and nothing I do works. I have gone into the advanced area and added this code to the footer of the code injection area and it is not working.


  (function (v, e, t, s) {
    e.televet = e.televet || { id: v };
    var o = t.createElement('script');
    o.async = true;
    o.src = 'https://connect.televet.com/shim.js';
    var r = t.getElementsByTagName('script')[0];
    r.parentNode.insertBefore(o, r);
  })('ckgzwmmxp05sj0711dbfpnlcg', window, document);

Link to comment
  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Were you directed by the source of this widget where to place it on your website? i.e. the footer or the header or on the page? Have you tried adding it to the page in a code block?

What is it supposed to do/look like?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 Did I help? Buy me a coffee?

Link to comment
On 1/10/2023 at 5:33 PM, PrintzVetServices said:

I am trying to add the following code to have my vet widget on my website and nothing I do works.

The 'widget' has been added to your Squarespace website, but is not functional. It does not look as though you have added the new Squarespace domain (vibraphone-round-t23s.squarespace.com) to the list of Whitelist URLs in Televet. You'll need to do this before you will be able to test it using this built-in domain. This setting ensures that your clinic's widget can only appear on a website that you own. 

I hope this helps. Let us know how you get on.

Did this help? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

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.