Re: Add side padding or change max width on a custom liquid section

Add side padding or change max width on a custom liquid section

b7huff
Tourist
4 0 1

Hello,

 

I have the craft theme and I built a custom collection page using the app Page Crafter. Basically I created the part of the page I want to go on my collection page just below the collection products, so essentially a long custom section of the collection page. Page Crafter let's me copy the code so I can add it into my custom collection page by adding a section of </> Custom Liquid option. The only issue is the edges go all the way to right and left margins and gets cut off. How can I add some right and left padding or max width within the code of the section Custom Liquid or is that even possible? Thanks!

Replies 4 (4)

b7huff
Tourist
4 0 1

Tried to add a screenshot but couldn't.

Made4uo-Ribe
Shopify Partner
8161 1962 2400

Hi @b7huff 

Would you mind to share your Store URL website? with password if its unpublish. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
b7huff
Tourist
4 0 1

www.thesterileguy.com

 

Actual collection page with the custom liquid section is www.thesterileguy.com/collections/crcst-essentials

Made4uo-Ribe
Shopify Partner
8161 1962 2400

Thanks for the info, Do you mean this section right? 

Made4uoRibe_0-1727865657680.png

Do you like all of theme to be on max width? 

If it is, 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

.page-width.page-width--isolate.section-template--23591312326944__custom_liquid_mjtYC9-padding {
    max-width: 100%;
}

 

And save. 

If you want some of them will max max width, we need it to call theme one by one. 

Like this for example: 

Made4uoRibe_1-1727865973093.png

Need to identify which div is need to margin or not. 

 

 

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

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.