Have your say in Community Polls: What was/is your greatest motivation to start your own business?

How can I adjust my webpage width on desktop?

Solved

How can I adjust my webpage width on desktop?

stefan25
Excursionist
16 0 2

Hello,

 

My page width on desktop is just way too large in the homepage and in the product page. I'd like to be some space on the margins at least at the collections in the homepage and in the product page because it is just way too wide. Can you help me? Here is a link of my store to see what I am talking about: https://thelavishcorner.com/ password bareon1403

 

Here is how I'd like to look like as page width:

https://lightsofscandinavia.com/

 

Thank you for your time,

Stefan

Accepted Solution (1)
niraj_patel
Shopify Partner
2378 514 507

This is an accepted solution.

You can add code by following these steps to reduce page width space on product page and Homepage collection list

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid


<style>
@media screen and (min-width: 750px){
.collection-list-wrapper.page-width,#MainContent .page-width{
max-width:1200px !important
}
}
</style>

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

View solution in original post

Replies 7 (7)

niraj_patel
Shopify Partner
2378 514 507

hello @stefan25 

You can add code by following these steps to reduce page width space

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid


<style>
@media screen and (min-width: 750px){
.page-width {
max-width: 1200px !important;
}
}
</style>

techlyser_ecom_0-1680430928323.png

 

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
stefan25
Excursionist
16 0 2

Thank you for our answer, however, now, it is just too narrow and moreover, it affects everything, the search and add to cart icon are just way too centered etc. I just want my collections and product pages and not everything do you know how I can do that?
Thank you!

 

now, it is like this: 

https://thelavishcorner.com/?_ab=0&_fd=0&_sc=1

niraj_patel
Shopify Partner
2378 514 507

This is an accepted solution.

You can add code by following these steps to reduce page width space on product page and Homepage collection list

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid


<style>
@media screen and (min-width: 750px){
.collection-list-wrapper.page-width,#MainContent .page-width{
max-width:1200px !important
}
}
</style>

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
CoastalGlowSunl
Tourist
6 0 1

Hi - I just tried this and it works great; however, not it is condensing my images and showing 1/2 of 1 and 1/2 of the other image...any suggestions? My website it password protected right now. 

PageFly-Victor
Shopify Partner
7865 1786 3116

Hi @stefan25 

 

You can try this code by following these steps:

Go to Online store => themes => actions => edit code  and add this code on file theme.liquid before tag </body>

 

PageFlyVictor_0-1680434826111.png

 

PageFlyVictor_1-1680434826109.png

 

<style>

@media screen and (min-width: 767px){

.collection-list-wrapper.page-width.isolate.page-width-desktop.no-heading.no-mobile-link.section-template--17615403843848__collection-list-padding {

    max-width: 1200px !important;

    width: 100%;

}

}

</style>

 

Hope this answer helps.

Best regards,

Victor | PageFly

GemPages
Shopify Partner
5625 1262 1254

Hi @stefan25,

 

Glad to support you today.

 

You can check out my suggestion below to get your concern resolved.

 

1. Go to Edit code on Online Store:

 

GemPages_0-1680506729252.png

 

2. add my code  above the </body> tag on Theme.liquid:

<style>
	@media(min-width: 767px) {
		#shopify-section-template--17615403843848__collection-list .collection-list-wrapper {
			max-width: 1200px !important;
		}
	}
	
</style>

 

Hope you find my answer helpful!

Kind & Best regards,
GemPages Support Team.

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center

cccosmetics
Visitor
2 0 1

1. Go to Online Store -> Theme -> Edit code.

2. Open yoursettings_schema.json

cccosmetics_0-1732724021554.png

3. Find "id:page_width"

4. Change to "max" to the number you like

cccosmetics_1-1732724062777.png

5. Go to Online Store -> Theme -> Customize.

6.Click on "Theme settings", on Layout

cccosmetics_2-1732724121087.png

7.Ajust your page width, and the maxinum will the number you set up in the Code.