Good morining,
I have problem to add the checkbox in the newsletter signup.
I want to add this in the part below
When I added a code
And then it is shown in this way
Main issue: add a consent checkbox directly below the newsletter email field in a Shopify theme, ensuring it’s required before submission. The current approach uses an absolutely positioned div for the checkbox and label, which renders misaligned/overlayed, as shown in the shared screenshots.
Latest update: The requester cannot share store URL/password, but provided the full newsletter Liquid section code. The checkbox block is placed inside the form, after the input row and submit button, with inline styles (position: absolute; z-index: 2; margin-top: 55px) and a Polish consent text including a link (“tutaj”).
Technical context: Shopify “form ‘customer’” for newsletter, hidden contact[tags]=newsletter, floating label input, and a compact layout (newsletter–compact). The checkbox lacks a name/id and relies on HTML “required” for validation, but its absolute positioning likely breaks layout and accessibility.
Outcome/status: No solution provided yet; access request was declined. The thread is open, awaiting guidance on proper placement, CSS (non-absolute), and integrating the checkbox into form validation and theme styles.
Media: Screenshots are central to show the incorrect positioning and desired placement.
Good morining,
I have problem to add the checkbox in the newsletter signup.
I want to add this in the part below
When I added a code
And then it is shown in this way
Hey @Donaaa
Kindly share your Store URL and Password if enabled
Unfortunately I can’t do it. I can only send you the full newsletter code.
#shopify-section-{{ section.id }} { background: {{ section.settings.background }}; color: {{ section.settings.text }}; }{%- if section.settings.content != blank -%}
{%- assign newsletter_id = ‘newsletter-’ | append: section.id -%}
{{ 'home_page.newsletter.success' | t }}
{%- else -%} {%- if form.errors -%}{{ form.errors.messages['email'] }}
{%- endif -%}{% schema %}
{
“name”: “Newsletter”,
“settings”: [
{
“type”: “paragraph”,
“content”: “Customers who subscribe will have their email address added to the "accepts marketing" customer list.”
},
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “Newsletter”
},
{
“type”: “richtext”,
“id”: “content”,
“label”: “Text”,
“default”: “
A short sentence describing what someone will receive by subscribing
”