Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How can I remove extra space on desktop!

Solved

How can I remove extra space on desktop!

omar_ab
Excursionist
38 0 17

How can I remove this extra space in the product page ONLY ON DESKTOP! Website: moorekainley.com

Screenshot 2024-08-11 at 7.55.25 PM.png

Accepted Solutions (2)

BSSCommerce-HDL
Shopify Partner
2305 835 907

This is an accepted solution.

Hi @omar_ab,

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag: 

 

 

<style>
@media screen and (min-width: 768px) {
    body.template-product.body-theme .page-container {
        margin-top: 0px !important;
    }
}
</style>

 

 

 Here is result: 

BSSCommerceHDL_0-1723426933404.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Eric-HAN
Shopify Partner
297 30 32

This is an accepted solution.

Hi, there

Go to your online store- select your theme- edit code. find the  main-product.liquid

find such style code and adjustmargin-top. or you could DM me to help you 

EricHAN_0-1723429570009.png

 

@media screen and (min-width: 768px) {
body.template-product.body-theme .page-container {
margin-top: 8px !important;
}​

 

- Helpful? Please hit Like and mark it as a solution
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me    Buy Me A Coffee

View solution in original post

Replies 5 (5)

BSSCommerce-HDL
Shopify Partner
2305 835 907

This is an accepted solution.

Hi @omar_ab,

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag: 

 

 

<style>
@media screen and (min-width: 768px) {
    body.template-product.body-theme .page-container {
        margin-top: 0px !important;
    }
}
</style>

 

 

 Here is result: 

BSSCommerceHDL_0-1723426933404.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

omar_ab
Excursionist
38 0 17

Pasted above the head tag, it did not work for some reason.

omar_ab
Excursionist
38 0 17

I put it below the head tag and it worked, thank you!

BSSCommerce-HDL
Shopify Partner
2305 835 907

@omar_ab, No problem. Have a good day 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Eric-HAN
Shopify Partner
297 30 32

This is an accepted solution.

Hi, there

Go to your online store- select your theme- edit code. find the  main-product.liquid

find such style code and adjustmargin-top. or you could DM me to help you 

EricHAN_0-1723429570009.png

 

@media screen and (min-width: 768px) {
body.template-product.body-theme .page-container {
margin-top: 8px !important;
}​

 

- Helpful? Please hit Like and mark it as a solution
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me    Buy Me A Coffee