Centralising Product on Refresh Theme

Hey guys, yes I’ve read the other tutorials on how to centralise the data but it isn’t working;

https;//cleansalt.co is the website

Aiming to centralise these two, the first is on my home page and second is on my product. I want to centralise the price, quantity selector, and size. Including their buttons. Also want to centralise the heading. Below are two photos, one of my main page and one of my product

Thanks for all the help!

1 Like

Hey @cleansaltco

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to solve your problem then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Hi @cleansaltco ,

Please go to Actions > Edit code > Assets > section-main-product.css file and paste this at the bottom of the file:

.product__info-container>* {
    text-align: center;
}
.product__info-container .quantity {
    margin: auto;
}

This did not work?

1 Like

Also did not work

Can you show me a screenshot of the code which you have added, the code is completely fine. It could be a issue of where you added the code.

Best Regards,

Moeed

Hey sorry mate, fixed it. thanks again!

Is there a way to do it to the home page aswel?

eg; the product on https://cleansalt.co

Hi @cleansaltco ,

Please go to Customize > Theme settings > Custom CSS and add code.

.product__info-container>* {
    text-align: center;
}
.product__info-container .quantity {
    margin: auto;
}

result