Jump to content

Adding a script to ticket confirmation


MJHost

Recommended Posts

Hey all, 

I am attempting to add a script to the ticket confirmation screen. But it doesn't show on the confirmation page, and also the activity log, is showing a Syntax error. Can anyone advise what I have done wrong? 

This is the script:

Smarty Error: Syntax error in template "MY-DIRECTORY-LINK-HERE" on line 31 "<script>(function(d, s, id) {var fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s);js.id = id;js.async=true;js.src = "https://hostadvice.com/embed/widgets.js";fjs.parentNode.insertBefore(js, fjs);}(document, "script", "ha-embed"));</script>" unknown tag 'var'

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated