Width of title text in a liquid section

good morning guys

somethung really annoying me at the moment

how do i make this text stay central but not spread the full with? where / how would i add code to only make it spread say 60% of the page?

all suggestions grealty apprecaited

cheers

R

1 Like

Hey @TheRichCo

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

Best Regards,
Moeed

https://therichco.uk/pages/the-rich-co-diamonds

Hi @TheRichCo ,

Step 1: Go to Shopify Admin β†’ Online Store ->Theme β†’ Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:


Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

1 Like

You can add code by following these steps

  1. Go to Online Store β†’ Theme β†’ Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

div#shopify-section-template--17165138657418__custom_liquid_nbmjqB { margin: 0 auto; max-width: 64% !important; }

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

hey ok cool thank you

will this change just this one page ?

cheers

richard

1 Like

@TheRichCo , Yes. It only changes for this part.

oh wow worked for me thats great thank you very much

1 Like

Hi @TheRichCo ,
We’re happy to see that our suggestion helped you solve the issue. Can you kindly give us a like and mark it as a solution? This can be a reference for other merchants if they have an issue like you. Should you need any further information, please do not hesitate to contact us by tagging directly at Community post. We will check and let you know soon. Thanks in advance :heart_eyes: