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>
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕ .
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
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>
- 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.
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
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕ .
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
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>
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕ .
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
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!
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024