What's your biggest current challenge? Have your say in Community Polls along the right column.

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
9179 2190 2707

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
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
9179 2190 2707

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.