[Support request] Adding Javascript code

Home Forums Support [Support request] Adding Javascript code

Home Forums Support Adding Javascript code

Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • #2327601
    Ying
    Staff
    Customer Support

    No problem 🙂

    #2327633
    Jason

    Hey Ying, the issue is that the script has added “escape characters” (extra quotes). The script I added to the hook is:
    <script type=”text/javascript” src=”https://fareharbor.com/embeds/api/v1/?autolightframe=yes“></script>

    However, on the site, it shows up with extra quotes:
    <script type=””text/javascript”” src=””https://fareharbor.com/embeds/api/v1/?autolightframe=yes“”></script>

    How do I fix that?

    #2327729
    Jason

    Can anyone tell me how to fix this?

    #2327764
    Ying
    Staff
    Customer Support

    GP doesn’t interfere with any code added to the hook element, so make sure the code you entered is correct.

    Try copy and paste this code:
    <script type="text/javascript" src="https://fareharbor.com/embeds/api/v1/?autolightframe=yes"></script>

    #2327797
    Jason

    Something is interfering with the code. Like I said, the script I entered is: <script type=”text/javascript” src=”https://fareharbor.com/embeds/api/v1/?autolightframe=yes“></script>

    But the script that shows on my site is: <script type=””text/javascript”” src=””https://fareharbor.com/embeds/api/v1/?autolightframe=yes“”></script>

    So, no idea what’s causing the extra quotes”” or how to fix it?

    #2327804
    Fernando
    Customer Support

    Hi Jason,

    Can you double check if the quotation marks are straight and not slanted? Slanted quotation marks can cause issue.

    If the quotation marks are straight, try temporarily disabling caching/optimization plugins.

    #2327809
    Jason

    Fernando, brilliant! That worked. I didn’t know the quotation marks could be different. Thank you all for your help. Always appreciated!

    #2327811
    Fernando
    Customer Support

    You’re welcome Jason!

Viewing 8 posts - 16 through 23 (of 23 total)
  • You must be logged in to reply to this topic.