How to make Collection list on homepage full wide screen

miltokas
Excursionist
45 0 12

Hi there!

How to make a Collection list (2 items) on my homepage full wide screen.

Basically I want to get rid of the side margins marked in red.

I have tried this code on theme.liquid but didn't work:

<style>
.shopify-section.index-section .page-width {
max-width: 100% !important;
}</style>

 

Thanks for your support!

 

My page: vengastore.com

miltokas_0-1705175317171.png

 

Reply 1 (1)

Made4uo-Ribe
Shopify Partner
5085 1211 1481

Hi @miltokas 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.section-template--19415971791180__7ebf5d64-1a1f-4966-a8f2-d9451a3d8d78-padding  {
    max-width: 100%;
    padding: 0px !important;
}
@media only screen and (max-width:767px){
.section-template--19415971791180__7ebf5d64-1a1f-4966-a8f2-d9451a3d8d78-padding .grid__item {
    max-width: 50%;
}
}

 

And save. 

Result:

Made4uoRibe_0-1705186554854.pngMade4uoRibe_1-1705186570744.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com