Hello guys, how can I centre this title?
Topic summary
A Shopify store owner needed help centering a product page title, specifically the “related products” heading. An image was shared showing the misaligned element.
Two solutions were provided:
-
CSS file method: Add custom CSS code to the theme’s base.css/style.css file targeting
h2.related-products__headingwithtext-align: center !important; -
Theme customizer method: Navigate to Theme settings > Custom CSS and paste the same CSS code directly in the customizer interface
Both approaches use identical CSS targeting the related products heading element. The issue was successfully resolved, with the original poster confirming both solutions worked.
Hi @NikosBat
Please, share your store URL with the password. Thanks!
Hi Made4uo-Ribe, here is the url and the password: https://www.nistore.de/products/nistore™-winterhandschuhe, fsfdsfsd
Thanks for the info, try this one.
- 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:
h2.related-products__heading.inline-richtext.h1 {
text-align: center !important;
}
- And Save.
- Result:
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hi @NikosBat
I hope you are well. You can follow our instructions below:
1/ Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
2/ From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/iDxwa8zBQ4Z-
3/ Copy the code below and paste it there
Here is the code for Step 3:
h2.related-products__heading {
text-align: center !important;
}
Please let me know if it works. Thank you!
Best,
Daisy - Avada Support Team.
Thanks DaisyVo that solved my problem
Thanks Made4uo-Ribe, that solved my problem


