Shopify themes, liquid, logos, and UX
How can I hide the footer of my product page on mobile devices only? I originally wanted to move the footer to the very bottom of the page but no one seems to have a solution that works so now I just want to hide the footer on my product pages for mobile view only. I've included a screen shot of how the mobile view looks.
Theme: Origin 15.1
URL: https://billon.maison/products/rockera & https://billon.maison/products/rockero
ScreenShot:
Solved! Go to the solution
This is an accepted solution.
Hello @MaisonBillonDon
Can you send me a screenshot of the code you added?
{% if template == 'product' %}
<style>
@media screen and (max-width: 749px) {
.footer__copyright {
display: none;
}
}
</style>
{% endif %}
@MaisonBillonDon - it will need code tweak as product pages do not have any separate unique ids, if you can accept me as collab then I can do it
Hello @MaisonBillonDon
Go to Online Store, then Theme, and select Edit Code.
Search for assets/base.css Add the provided code at the end of the file.
@media screen and (max-width: 749px)
{
.footer__copyright {
display:none;
}
}
I only wanted to hide the footer on product pages only.
Hello @MaisonBillonDon
Go to Online Store, then Theme, and select Edit Code.
Search for Layout/theme.liquid Add the provided code at the end of the file.
{% if template == 'product' %}
<style>
@media screen and (max-width: 749px)
{
.footer__copyright {
display:none;
}
}
</style>
{% endif %}
@devcoders @LizHoang Neither of these code solutions worked. Could it be possible that the 'product' could be named something different based on the template?
This is an accepted solution.
Hello @MaisonBillonDon
Can you send me a screenshot of the code you added?
{% if template == 'product' %}
<style>
@media screen and (max-width: 749px) {
.footer__copyright {
display: none;
}
}
</style>
{% endif %}
@MaisonBillonDon - take this code out of </style> tag, this red box code should start after </styles> tag and end before </body>
Hello @MaisonBillonDon
Please add my code after the style.
Hello @MaisonBillonDon
You're very welcome! I'm thrilled to hear that you're pleased with the outcome. Don't hesitate to reach out if you need further assistance.
like and accepting the All solution. Thank you!
Hi MaisonBillonDon
You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file theme.liquid and add this code at the end of the file
@media screen and (max-width: 749px)
{
.footer__copyright {
display: none !important;
}
}
</style>
{% endif %}
Best,,
Liz
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025