Hello!
I had a 3rd party build my site for the most part, and they added this newsletter sign-up at the bottom of most of my pages (see in the screenshot attached). I actually prefer the look of the built-in Shopify newsletter sign up that I added to my footer, so I no longer want this one on my site, but I can’t seem to find the code for it anywhere!
URL: https://banumagnifique.com
Any help would be greatly appreciated!
Solution 1:
To prevent the newsletter from displaying on your homepage via CSS go to assets/classic-10_7.css and add the code below to the bottom of classic-10_7.css file.
#mc_embed_signup {
display: none;
}
In case it doesn’t work, instead, you could try adding the code to the bottom of the style.scss.css file**.**
Solution 2:
Go to themes > actions > Edit code > open theme.liquid and search for {% include 'mc_embed_signup ’ %}
If you find the snippet simply comment out that part of the code like in the example below.
{% comment %}
{% include 'mc_embed_signup ' %}
{% endcomment %}
P.S. Make sure to back up the existing code before you make any manual edits.
Thanks for your reply! I am trying to use solution 2 because I’d like it to affect all pages that the form is on, not just the homepage (I also can’t seem to find “classic-10_7.css”).
Here is a screenshot of the code I found in theme.liquid containing “mc_embed_signup”, where in this string should I enter your code?
This is what you could try:
- Find this code section (as on screenshot).
.
.
.
-
Remove the existing comment line: “”
-
Add the HTML comment around the whole code section, like this:
As always, backup existing code before you make any changes in case you need to go back. Hopefully, it works, in case it doesn’t, reach out to a Shopify dev.