bpuc
April 5, 2023, 11:49pm
1
I’m trying to center the product name and price in the product list page. The support guy told me that my theme does not support that and i’d have to do custom code.
Can someone tell me which file the change will be made in and the code to center it.
Here is my shop: https://undisputedchamp-store.myshopify.com/collections/all
I’m using the colorblock theme. Thanks!
1 Like
Hi @bpuc ,
This is Victor from PageFly - Landing page builder, I’d like to suggest this idea for solution:
Step 1. Go to Online Store → Theme → Edit code
Step 2. Open your theme.liquid theme file
Step 3. Paste below code before :
Hope my answer will help you.
Best regards,
Victor | PageFly
Hi @bpuc ,
You can center your product title and price in product grid by following the instructions below.
If you want to easily update your theme in the future to the newer theme version , I would suggest to utilized the Custom CSS
From you Admin page, go to Online store > Themes > Customize
Find the Custom CSS shown with the image above and paste the code below (Please see the image on how)
[id^="CardLink-template"] , .card__information .card-information{
text-align: center;
}
Make sure to SAVE
See result here:
bpuc
April 6, 2023, 1:34am
4
Thanks so much that worked! Would this option be better or @PageFly-Victor ? Just curious…
bpuc
April 6, 2023, 1:35am
5
Thanks so much for your suggestion. I was able to fix it using the custom css that @made4Uo provided.
1 Like
@bpuc
Newer version comes so fast in Shopify Free themes. Custom css is the Shopify’s solution to easily updates your theme without having to add the code again. You can read more here .