How can I hide the footer of my product page on mobile devices only?

Solved

How can I hide the footer of my product page on mobile devices only?

MaisonBillonDon
Explorer
87 0 15

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: 

 

IMG_9335.jpg

Bravo Billón
Accepted Solution (1)
devcoders
Shopify Partner
1112 134 315

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 %}



Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

View solution in original post

Replies 14 (14)

suyash1
Shopify Partner
10712 1323 1699

@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

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
MaisonBillonDon
Explorer
87 0 15

@suyash1 how can I accept you as a collaborator?

 

Bravo Billón

devcoders
Shopify Partner
1112 134 315

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;
}
}

 

devcoders_0-1739069415956.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
MaisonBillonDon
Explorer
87 0 15

I only wanted to hide the footer on product pages only. 

Bravo Billón
devcoders
Shopify Partner
1112 134 315

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 %}
Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
MaisonBillonDon
Explorer
87 0 15

@devcoders @LizHoang  Neither of these code solutions worked. Could it be possible that the 'product' could be named something different based on the template? 

 

Bravo Billón
devcoders
Shopify Partner
1112 134 315

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 %}



Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
MaisonBillonDon
Explorer
87 0 15

@devcoders Here is a screen shot:

 

Screenshot 2025-02-08 at 10.41.43 PM.png

Bravo Billón
suyash1
Shopify Partner
10712 1323 1699

@MaisonBillonDon - take this code out of </style> tag, this red box code should start after </styles> tag and end before </body>

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
MaisonBillonDon
Explorer
87 0 15

Thank You this worked! @suyash1 

Bravo Billón
devcoders
Shopify Partner
1112 134 315

Hello @MaisonBillonDon 

Please add my code after the style.

 

 

devcoders_0-1739072781737.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
MaisonBillonDon
Explorer
87 0 15

Thank you @devcoders I've accepted your solution ! 🙏

Bravo Billón
devcoders
Shopify Partner
1112 134 315

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!

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

LizHoang
Shopify Partner
1251 158 196

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 %}

 

LizHoang_0-1739070776670.png

 

Best,,

Liz

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program