Embed codes without JavaScript

  • cmefly26
    Asked on February 27, 2021 at 9: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?

  • John Support Team Lead
    Replied 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  Screenshot 10

    It only uses plain HTML and inline CSS codes.

  • cmefly26
    Replied on February 27, 2021 at 10:49 AM

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

  • John Support Team Lead
    Replied on February 27, 2021 at 2: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 href="YOUR FORM URL" target="_blank">CLICK HERE TO OPEN FORM</a>

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