newsletter signup on a page

Solved
Tourist
6 1 0

I'm trying to have a newsletter signup on a page like in the screenshot. However, the newsletter sign-up shows up on every page, could anyone help me to fix this? I've tried all morning and can't find a solution online.

 

thank you in advance!

Schermafbeelding 2019-11-06 om 13.41.22.png

0 Likes
Tourist
6 1 0

I use the simple theme if that matters, maybe this screenshot can be usefull.. im not any good with html..Schermafbeelding 2019-11-06 om 13.44.58.png

0 Likes

It appears that you have the syntax for the if condition with two brackets. That is why it appears on all the pages. Not sure if page_title is a variable you use, but page.handle will return the link of the page.

 

try this

{% if page.handle contains "subscribe" %}
[FORM CONTENT]
{% endif %}
We work on Shopify stores to improve, maintain, and build functionality across all store types.
- Reach Out To Us! | hello@storemedics.com
- Visit Our Site! | https://www.storemedics.com

If we helped, leave a Like / Accept Solution
0 Likes

Success.

Tourist
6 1 0

Didn't work for me, thanks tho. i've found a solution thanks to @oscprofessional :

If you want to display newsletter on single page you need theme customization.

1. Create one template page for newsletter.
2. Assign newsletter section to that page.

3. make a new page and select the template suffix.

0 Likes