Adding margins and padding to Custom Liquid in Cart of Dawn Theme

I have been attempting to implement a total cart weight into the cart section of my shopify store.

I have been able to successfully implement in, however, when using the editor and custom liquid block, the text is skewed all the way to the left of the page as seen in the image below.

For the custom liquid, I am using:

Total cart weight: {{ cart.total_weight | weight_with_unit }}

In the cart.json code, it shows up as:

“1652672470857b3ec0”: {
“type”: “custom-liquid”,
“settings”: {
“custom_liquid”: “

Total cart weight: {{ cart.total_weight | weight_with_unit }}</p>”,

“color_scheme”: “background-1”,
“padding_top”: 40,
“padding_bottom”: 52
}

What do I add to this in order to be able to shift the text more to the right, so it is not sitting on the far left side of the screen?

Hi @dsoongabc ,

Try adding the page-width class. The html code should look like below.


Total cart weight: {{ cart.total_weight | weight_with_unit }}

1 Like

Thanks boss! This worked perfectly!

2 Likes