TonyG54
September 22, 2023, 3:51pm
1
Site: serenity-kits.com
Looking for help centering the following sections.
#1 Date" and “share info” buttons on blog posts (mobile & desktop)
#2 Multi-column Heading Used For Lip Balm Ingredients (product page mobile)
#3 Collection headings (used for showing off all product categories)
#4 All info around price (on both mobile & desktop)
Hi @TonyG54 ,
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file base.css
Step 3: Paste the below code at the bottom of the file → Save
article span.circle-divider.caption-with-letter-spacing{
text-align: center;
display: block;
}
@media(max-width:767px){
.title{text-align:center}
}
.product__title,.price.price--large,.product__tax.caption.rte,shopify-payment-terms{
text-align:center
}
Hope my solution works perfectly for you!
Best regards,
Oliver | PageFly
TonyG54
September 22, 2023, 5:31pm
3
It mostly worked, however, the “quantity” label wasn’t centered, but the button was.
Also, the multicolumn heading remained the same. (see here, bottom of page https://serenity-kits.com/pages/faq )
Hi @TonyG54
Try this one to complete the designs.
From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.title-wrapper-with-link.title-wrapper--self-padded-tablet-down.title-wrapper--no-top-margin {
justify-content: center;
}
label.quantity__label.form__label {
text-align: center;
}
Hi @TonyG54
I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.
Please add this css in your bottom of the base.css file:
.product__info-container {text-align: center;}
Regards,
San
I re-check but I see worked