Embed codes without JavaScript

  • Profile Image
    cmefly26
    Asked on February 27, 2021 at 09:21 AM

    The squarespace code includes javascript which squarespace only uses in it's business plan now. How can you embed the code with only css?



    This is a re-post of a comment on Adding a form to Squarespace

  • Profile Image
    JohnRex
    Answered on February 27, 2021 at 10:08 AM

    Unfortunately, you cannot embed a form using only CSS. There must be HTML codes at least.

    And yes, the embed codes provided have Javascripts in them, but you can ditch it and just use the iframe embed part:

    1614438503_603a6067cc629_

    It only uses plain HTML and inline CSS codes.

  • Profile Image
    cmefly26
    Answered on February 27, 2021 at 10:49 AM

    It also says it doesn't support iframe? Is there any other way?

  • Profile Image
    JohnRex
    Answered on February 27, 2021 at 02:27 PM

    Unfortunately, we cannot embed the form using only CSS - so I guess upgrading to a SquareSpace premium plan is necessary for you to embed the form using the code provided (mentioned in the guide).

    Or you can just create a hyperlink to the form using this html code below:

    <a target="_blank" href="YOUR FORM URL" >CLICK HERE TO OPEN FORM</a>

    However, this will take the user outside your webpage and open the form on a separate tab.