Re: How do I make larger margins on my whole website? (disabling Full-Width)

Solved

How do I make larger margins on my whole website? (disabling Full-Width)

Ruef
Tourist
6 0 0

Hello!

I'm trying to pad the sides of my whole website on desktop and bring my content to the center of the page. My website is currently full-width. I'm using the theme 'Shapes' & my website is here - https://theprizecounter.com/

 

I love the look of the website when I'm editing (the large margins on the sides) but not so much when I visit outside the editing.

(This width is preferred for desktop viewing, not mobile.)

b1b054ef53e5b0d2c949a77308dd246c.png

Accepted Solution (1)
BSSCommerce-HDL
Shopify Partner
2086 742 936

This is an accepted solution.

Hi @Ruef 

 

Please modify the previous code to this and let me know if it fixes the issue

<style>
  @media (min-width: 990px) {
    body { 
       margin: 0 auto !important;
       max-width: 80% !important;  
    }
  }
</style>

 

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

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

Replies 6 (6)

Dan-From-Ryviu
Shopify Partner
9251 1856 1890

Hi @Ruef 

You can add this code to the theme.liquid file, after <head> to do it.

<style>
@media (min-width: 990px) {
.px-section { 
padding-left: 5rem !important;
padding-right: 5rem !important;
}
}
</style>

 

- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

Ruef
Tourist
6 0 0
Hello, unfortunately this didn't change anything

BSSCommerce-HDL
Shopify Partner
2086 742 936

Hi @Ruef 


Please follow the instructions below

 

Step 1: Shopify Admin -> Online Store -> Edit Code:

Step 2: Choose file theme.liquid and add this code to below <head>:

 

<style>
  @media (min-width: 990px) {
    body { 
       margin: 0 auto;
       max-width: 80% !important;  
    }
  }
</style>

 

 

Here is the result:

image.png

 

 

Hope this can help you. 
Kind regards

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

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

Ruef
Tourist
6 0 0

Hello! This helped but now everything is aligned to the left.57487894e367f301a6ed18dd0b663eb7.jpg

BSSCommerce-HDL
Shopify Partner
2086 742 936

This is an accepted solution.

Hi @Ruef 

 

Please modify the previous code to this and let me know if it fixes the issue

<style>
  @media (min-width: 990px) {
    body { 
       margin: 0 auto !important;
       max-width: 80% !important;  
    }
  }
</style>

 

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

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

Ruef
Tourist
6 0 0

Thank you! 😄

This worked great!