Hello my website is tunetoyz.com. My site currently looks like the top image, but I want it to look like the bottom image. I believe it is a. padding issue this exists on both pc and mobile. Thank you for your help!
Topic summary
A user is experiencing unwanted padding on their product pages (tunetoyz.com) affecting both desktop and mobile views. They want to reduce the spacing between the header and product content.
Solutions Attempted:
- Initial CSS code suggestions targeting the product template were provided but didn’t resolve the issue
- A revised approach was offered: adding custom CSS directly in the product template’s custom CSS box
- The desktop issue was resolved, but mobile padding remained problematic
Working Solution:
A mobile-specific CSS fix was provided using a media query:
@media only screen and (max-width: 749px) {
section#MainProduct-template--18148672504020__main {
padding-top: 15px;
}
}
Implementation:
- Navigate to product template settings
- Open the custom CSS box
- Add the media query code at the bottom
- Adjust padding value (15px) as needed
The discussion includes screenshots demonstrating the before/after states and implementation steps. The issue appears resolved with the mobile-specific CSS approach.
Please add this code to theme.liquid, after and check again
{%- if template.name == 'product' -%}
{%- endif -%}
try this code
{%- if template.name contains 'product' -%}
{%- endif -%}
Hi @TuneToyz
kk thanksFirst you should go to the product template and there you should have open the custom css box and there will add this css
section#MainProduct-template–18148672504020__main {
padding-top: 15px;
}
or
click on product information stetting
and at the bottom you see the padding option for increase or decrese
Hi @TuneToyz
If my solution reply helpful? Click Like to let me know!
Mark it as an Accepted Solution
hey is there a way to make the change only on mobile? Thanks
Hi @TuneToyz
Yes You Should Add i have provided css in media screen than its only work on mobile.
Add this css on custom css box at the very bottom i will attached screenshot
@media only screen and (max-width: 749px) {
section#MainProduct-template--18148672504020__main {
padding-top: 15px;
}
}
Thanks And Regards
Hi @TuneToyz
If my solution reply helpful? Again Click Like to let me know!
Mark it as an Accepted Solution







