0
Welcome Guest! Login
0 items Join Now

SOLVED Gantry Atom adding extra script tag

    • Lownotes's Avatar
    • Lownotes
    • Hero Rocketeer
    • Posts: 325
    • Thanks: 2

    SOLVED Gantry Atom adding extra script tag

    Posted 6 years 4 months ago
    • I'm getting an extra script tag when I try to create an atom in gantry 5

      This is what I'm putting into my atom
      <script type="text/javascript" async="async" defer="defer" data-cfasync="false" src="https://mylivechat.com/chatinline.aspx?hccid=#####"></script>
      

      This is what shows up on the page
      <script type="text/javascript"><script type="text/javascript" async="async" defer="defer" data-cfasync="false" src="https://mylivechat.com/chatinline.aspx?hccid=#####"></script>
      
    • Last Edit: 6 years 4 months ago by Lownotes.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 96719
    • Thanks: 12806
    • Web Designer/Developer

    Re: SOLVED Gantry Atom adding extra script tag

    Posted 6 years 4 months ago
    • You don't put the script tag in the atom - only the javascript.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Lownotes's Avatar
    • Lownotes
    • Hero Rocketeer
    • Posts: 325
    • Thanks: 2

    Re: SOLVED Gantry Atom adding extra script tag

    Posted 6 years 4 months ago
    • So how do you suggest that I include an external script like I'm trying to do. Is that not possible?
    • Lownotes's Avatar
    • Lownotes
    • Hero Rocketeer
    • Posts: 325
    • Thanks: 2

    Re: SOLVED Gantry Atom adding extra script tag

    Posted 6 years 4 months ago
    • I was actually able to get this to functionally work by adding the script tag twice. The first instance breaks but the second one doesn't. It does show an error in firebug though.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 96719
    • Thanks: 12806
    • Web Designer/Developer

    Re: SOLVED Gantry Atom adding extra script tag

    Posted 6 years 4 months ago
    • See screenshot. There is a field to specifiy an external script and there is also a field to specify inline javascript. The former you just specify the location, the latter you just add the code without script tags.

      I thought you were putitng the script in the inline javascript field? and that is why the script tags are doubled up?

      Regards, Mark.
    • The following users have thanked you: Lownotes

    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Lownotes's Avatar
    • Lownotes
    • Hero Rocketeer
    • Posts: 325
    • Thanks: 2

    Re: SOLVED Gantry Atom adding extra script tag

    Posted 6 years 4 months ago
    • doh! I tried the box but thought you could only navigate to a local file. I didn't try just pasting the url in the box. To easy.

      I've got it now. Sorry for all these rookie questions.

Time to create page: 0.119 seconds