How can I add a checkbox to my newsletter subscription form?

Hello everyone,

I am using empire theme and I am looking for a free app or some code lines to add a check box in the newsletter subscription section.

at the moment it is sufficient for the customer to put his/her email address and to click on the button but I would like to add a checkbox which says : I read and accepted the privacy statement .

Is there anyway to do that?

Thanks for your help

Hi, did you already get this code? thanks..

Hi, I am also interested in a solution!

hi all @Florian123 @Unforgettable @jetlags i am posting the solution

you can find the newsletter template file based on your theme- you can search into your theme code find this type of text subscribe


add this line below to the button


        I have read and agree to the Terms of Use and Privacy Policy

if you need more help on that- you can DM me or email me at jim@avidbrio.com

Hi AvidBrio,

thanks for posting the solution. I am using the Debutify Theme and not finding the “button” line.

Section Newsletter.liquid I see the %schema%.

{% schema %}
{
“name”: “Newsletter”,
“class”: “newsletter-section”,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “Subscribe to our newsletter”
<input type=“checkbox"value=”" required/> I have read and agree to the Terms of Use and Privacy Policy
},
{
“type”: “text”,
“id”: “subtitle”,
“label”: “Subheading”,
“default”: “A short sentence describing what someone will receive by subscribing”

In the footer.liquid I tried to add the line of code but got the result below. Could you please advise? Thanks a lot.

In the liquid footer

@wearehumanus you have add the HTML check box for only the newsletter. Currently, you added on schema means they render on of active block, you can add the checkbox on newsletter snippets or particular section file.

Thanks for much for your prompt response Avid.

Now I got the following:

The email address input box size changed.

now you get your solution correct? @wearehumanus

@AvidBrio

Hi again Avid and thanks for your follow-up. Haven’t found the solution yet but on it. Any idea on the box size and putting a hyperlink on the Privacy Policy?

Hi,

Im using the Debut Theme as well and despite I did follow your step, the check box doesnt show up.

Could you please advise?

Thanks!!!

@dottedlineshopi I can see you added code at the right place. there two-issue

Maybe some CSS issue not showing up there.

or that section template used a different one. so cross check agin

No, still not. Still haven’t figured out the right coding to get the appearance right and the hyperlink embeded.

@wearehumanus thank for posting your issue now you need to add CSS based on your layout. if can’t do it yourself then you have to hire an Expert Developer.

I’m also interested in finding out how to add hyperlink to the text. I would like t hyperlink the “privacy policy” text to my privacy policy page.

OMG! this is really helpful! thank you!!!