Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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 <link>.
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
<button
class="
form-field
newsletter-submit news-btn-v2
button---{{ button_style }}
"
name="subscribe"
type="submit"
>
{{ 'general.newsletter.subscribe' | t }}
</button>
add this line below to the button
<!-- add this live below to subscribe button code --><br/>
<input type="checkbox"value="" required/> 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%.
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
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
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.
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.
OMG! this is really helpful! thank you!!!!