Why am I getting an error message when adding HTML to my updated Envy theme?

Why am I getting an error message when adding HTML to my updated Envy theme?

Snoop78
New Member
5 0 0

Hi, I have just updated my Envy theme from 26.4.0 to updated 32.0.0.

I now have to rebuild my website. I have a landing/sign up page that has a mailerlite sign up form in it. I use the custom HTML block to put in the code and my previous (old) theme the HTML code worked fine.

In this new theme when i add the code to the block i get this error:

 

Setting 'code' can't include Liquid syntax ('{{', '}}', '{%' or '%}') without valid dynamic sources.

 

I dont code and have no idea why the HTML doesnt work - I copy it from the form on Mailerlite and normally just put it in the block and it displays and works....

How do I fix this?

 

Thanks

Reply 1 (1)

NomtechSolution
Astronaut
1245 113 160

To resolve this issue, you can try the following steps:

  1. Remove any Liquid syntax ({{, }}, {%, %}) from the HTML code you obtained from Mailerlite. Only keep the pure HTML structure and content.

  2. Access your Shopify admin and go to the Online Store > Themes section.

  3. Click on the Customize button for your Envy theme.

  4. In the theme editor, navigate to the desired page where you want to add the Mailerlite sign-up form.

  5. Locate the appropriate section or block where you want to place the form. It may be a text section or a custom content block.

  6. Add a new Custom HTML block to the section or block you identified.