All things Shopify and commerce
I was able to add this code to help center my heading on pages on web view but it didn't work for mobile. Please can you help me make my headings centered and smaller on mobile view. Here is an example of the page:
Spaza Home | About Us – spazahome.co.uk
Please help.
This is the code that worked on web view:
.main-page-title{
font-size: 1.26667em !important;
}
.main-page-title{
text-align: center;
}
You will need to add media query for mobile here is the code
@media screen and (max-width: 768px) {
.main-page-title {
font-size: 1.26667em !important;
text-align: center;
}
}
Hi @tesswypkema
Check this one.
h1.main-page-title.page-title.h0 {
text-align: center !important;
}
And Save.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025