How do I change the page width of my product pages?

Solved

How do I change the page width of my product pages?

viviq
Tourist
5 0 3

I want to make the page width of my product page smaller. It's currently so large, it's right in my face. See example: https://www.viviqsucculents.ca/collections/succulents/products/echeveria-blue-surprise  

 

My theme is Cornerstone. 

Accepted Solution (1)

zack_dev
Shopify Partner
92 15 15

This is an accepted solution.

hi,

<style>
.template-product main#main {
    padding: 0 5%;
}
</style>

this css would reduce the width.



- Helpful? Like or Accept solution, - Buy me Coffee


-

Contact me

View solution in original post

Replies 8 (8)

summersrain
Shopify Partner
2 0 0

This might be happening due to predefined aspect ratio of the image , you can editing the theme.css file 
line 9460 -  aspect-ratio: 4 / 5  is affecting so mayb consider removing, it seems to work when i try via inspect



note: please a copy and edit the site

zack_dev
Shopify Partner
92 15 15

This is an accepted solution.

hi,

<style>
.template-product main#main {
    padding: 0 5%;
}
</style>

this css would reduce the width.



- Helpful? Like or Accept solution, - Buy me Coffee


-

Contact me

viviq
Tourist
5 0 3

this worked great, thanks!

zack_dev
Shopify Partner
92 15 15

glad to help 🙂



- Helpful? Like or Accept solution, - Buy me Coffee


-

Contact me

edifi3d
Shopify Partner
9 0 1

Amazing, this works great.  Only thing is:

- Width is reduced in mobile mode as well, is there a way to exclude mobile ?

 

Thank you!

zack_dev
Shopify Partner
92 15 15
<style>
@media(min-width:768px)
{
.template-product main#main {
    padding: 0 5%;
}
}
</style>

 

Hi you can replace the css with this one it will apply only to desktop .



- Helpful? Like or Accept solution, - Buy me Coffee


-

Contact me

edifi3d
Shopify Partner
9 0 1

Thank you so much!

zack_dev
Shopify Partner
92 15 15

You are welcome !



- Helpful? Like or Accept solution, - Buy me Coffee


-

Contact me