Hello!
I would like to remove a footer section on specific pages. I have attached a picture for reference. I would like to remove the Subscribe block from all pages except the Home Page.
Hello!
I would like to remove a footer section on specific pages. I have attached a picture for reference. I would like to remove the Subscribe block from all pages except the Home Page.
Hi @blushingbelle
In footer.liquid
Find this line
{%- if section.settings.newsletter_enable -%}
and replace it with
{%- if section.settings.newsletter_enable and template contains "index" -%}
Please check if it works for you
Thanks!
Check this one.
From your Shopify admin dashboard, click on “Online Store” and then “Themes”
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
In the “theme. Liquid” file. Find the tag and paste the code below before the tag.
{% unless template == 'index' %}
{% endunless %}
And Save.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Hello, this did not work.
Hello, I tried this and it did not work.
Hello @blushingbelle ,
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: Paste the below code at the bottom of the file → Save
{% if template == 'index' %}
{% else %}
{% endif %}
Thanks!
Hi @blushingbelle ,
You can try this code by following these steps:
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file theme.liquid
Step 3: Insert the below code at the bottom of the file → Save
{% unless template.name == 'index' %}
{% endunless %}
Hope this will help you!
Thank you this worked!