Embedding lightbox code to Shopify page

  • Profile Image
    pawpykisses
    Asked on August 07, 2017 at 04:26 PM

    Hello there, 

     
    I am trying to embed a lightbox form to a page on Shopify. I now have the javascript at the end of theme.liquid. I use a class on the actual page to point to the script. 
     
    Source code on page:
     
    theme.liquid:
    .jotformscript {
    }
     
    The form works this way but it's messing up with other functions on the website. 

    Please advise on how to embed the script. Thank you so much!
  • Profile Image
    Mike
    Answered on August 07, 2017 at 05:43 PM

    Please try a workaround from this thread, place the lightbox script within Head section of the page/template before other scripts.