How can I center the page heading for my 'workouts' page?

hennrylam
Tourist
12 0 2

hennrylam_0-1634586030890.png

Please refer to image -  I have a page called "workouts" and the tital is on the left, how to centre?

Thank you

Replies 4 (4)

Developer-G
Shopify Partner
3079 604 856

Hello @hennrylam ,

Pick the element id/class and assign it css text-align: center

e.g. let's say my element 'class' is heading then my css will be
.heading{ text-align: center; }

Thanks

- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me.
- Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
-Advance Search Filter

Kinjaldavra
Shopify Partner
2302 570 1423

hello @hennrylam 

Please provide the website URL and if your store is password protected then also provide a password So I will check and provide a solution here.

Zworthkey
Shopify Partner
5581 642 1567

@hennrylam

 

h1.small--text-center {
    text-align: center !important;
}

 

please Go to Online Store->Theme->Edit code then go to assets/theme.css ->paste below code at the bottom of the file.
or kindly add this code to theme.scss 
Thank you.

Kinjaldavra
Shopify Partner
2302 570 1423

hello @hennrylam 

please Go to Online Store->Theme->Edit code then go to assets/theme.css ->paste below code at the bottom of the file.

.template-page h1 {
    text-align: center !important;
}