Shopify themes, liquid, logos, and UX
Hello, I would like to edit only the product pages' footer, so it doesn't display my Footer's Menu and my social media icons. When I change it on the product page template, it changes for every page.
I hope you can help me.
Thank you!
Solved! Go to the solution
This is an accepted solution.
@GO to theme.liquid and add the following code before the </body> tage :
{% if template == "product" %}
<style>
.footer-block:only-child:last-child {
display: none !important;
}
.footer-block--newsletter {
display: none !important;
}
</style>
{% endif %}
This is an accepted solution.
@GO to theme.liquid and add the following code before the </body> tage :
{% if template == "product" %}
<style>
.footer-block:only-child:last-child {
display: none !important;
}
.footer-block--newsletter {
display: none !important;
}
</style>
{% endif %}
Thank you so much! Have a good evening
Hi, I have a similar question but slightly different desired outcome. I'm trying to remove ONLY the payment ICONS from the homepage. I assume that I need a different template value. I've tried "Home page", "homepage", and "Homepage" but nothing works. Any thoughts on what needs to be changed in the above code?
Thank you!
Sure…it’s jiggerjunction.com
Sorry about that! Shared privately. Also, since I didn't mention it earlier, the theme is Dawn.
@jrfellers , Go to theme.liquid file and add the following code to the end of it before the </body> tag:
{% if template == "index" %}
<style>
.footer__localization:empty+.footer__column--info {
display: none;
}
</style>
{% endif %}
This will hide the payment icons on the homepage
@Abdosamer That did it! Comparing that with what you shared earlier with @LeticiaIb shows me that I wasn't even close to being able to use that code "as is". Thank you so much for your help!
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025