Can I center the page title using custom CSS in Shopify?

Furanakks
Excursionist
17 0 3

Hello everyone,

Is it possible to center the page title using custom CSS code in Shopify? I've tried exploring the theme settings, but couldn't find an option to do so. If anyone has successfully centered the page title using CSS, could you please share the code snippet?

Thank you in advance for your help!
https://prnt.sc/o62cmHlxOlYC

Replies 4 (4)

NomtechSolution
Astronaut
1245 113 151

Yes, it is possible to center the page title using custom CSS code in Shopify. Here's a code snippet you can use:

.page-title {
  text-align: center;
}
Furanakks
Excursionist
17 0 3

its not working for me 😞 refresh theme
https://prnt.sc/V3SDAPcMro2B

Denishamakwana
Shopify Partner
1408 173 231

Hi,
Please share your store URL and if your store is password protected then also provide password too.
Thank you.

If helpful then please Like and Accept Solution. Want to modify or custom changes on store Hire me. Feel free to contact me on denishabhensdadiya@gmail.com | Shopify Design Changes | Custom Modifications In to Shopify Theme
Divin3
Tourist
9 0 1

Do you know how to fix the problem?