Shopify themes, liquid, logos, and UX
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.)
Solved! Go to the solution
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>
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
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>
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- 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.
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:
Hope this can help you.
Kind regards
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
Hello! This helped but now everything is aligned to the left.
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>
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
Thank you! 😄
This worked great!
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025