Jump to content

JavaScript or HTML from MailerLite into my Personal Subscription

Go to solution Solved by creedon,

Recommended Posts

Can I successfully embed JavaScript or HTML from MailerLite (newer free version) into my Personal Squarespace Subscription. 

I created the embedded form, put the HTML intro a code block on SquareSpace and it looks ok but show an error message "code removed."  The best I can determine is that I cannot add a JavaScript or HTML embedded form code into my "personal subscription" and need a business subscription. Correct or no? 

Using Zappier is not the solution to link the two because I still can't get MailerLite on SquareSpace, right?

thanks!

Link to comment
  • Solution

I can't speak to the MailerLite JavaScript itself working on a SS site.

As to running JavaScript on a SS site, that requires the business plan or above.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Hey there Creedon, 
I appreciate your feedback. I have no coding skills but am google learning. I assume running JavaScript on a SS site is synonymous with running HTML on SS site, interchangeable type of code.

I was thrilled that I got as far as creating an otherwise successful embedded code in MailerLite. If it was not for the "upgrade my plan" blocking message my script looked good. 
Thank you for confirming. Creedon. 
p

Link to comment
  • 1 month later...

I was just having this issue...

We have one MailerLite account (currently on free plan) and several SquareSpace sites - only one of which is on Commerce Basic (where you can have custom Javascript), the others are on Personal (no custom Javascript).

For the "Personal" level sites, you can't put the MailerLite header javascript code in at all. So that option just isn't a go-er.

BUT I have just discovered (I think!)...

When I make the sign-up form in MailerLite and then copy the HTML code, which is long and has CSS, HTML *and* Javascript..... 

If I add a "code" block to the page, the javascript bits get disabled, and you get the "code removed" warning in the editor.

However, if you put an EMBED block in, embed as Code Snippet, then paste the full MailerLite "html" code in there (which is CSS, HTML and Javascript), you get some on-screen warnings in the SS editor about the code being disabled..... but if you Save, and try the live site.... the MailerLite form works exactly as expected? (i.e. the javascript works)

Hope this is helpful to others!

(I am putting our MailerLite sign up form in the site footer, so I'll only have to enter it once for the whole site)

Link to comment

Just an update to this....

When I first used this EMBED block technique, you end up with "preview warnings" and "script disabled" text at the bottom of it, meaning you can't size the EMBED box to be the right size for your MailerLite form.

If you add this CSS code to your Custom CSS (website > pages > website tools > custom css), the in-editor warnings disappear and you can size the embed properly:
 

html.squarespace-damask .sqs-blockStatus, .sqs-block .removed-script {
  display: none !important;
}

Thanks

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.