A space to discuss online store customization, theme development, and Liquid templating.
My contact us page and about us page have a mandatory title. How can I remove the title OR center them as they are on the left of the page now. My website is www.boxywallets.com for reference.
Solved! Go to the solution
This is an accepted solution.
Hello @lelestore1 ,
Follow these steps:
1. Go to Online Store -> Theme -> Edit code
2. Open your base.css file and paste the following code below:
To hide the title:
.main-page-title {
display: none !important;
}
To center the title:
.main-page-title {
text-align: center !important;
}
Note: Don't use it in theme.liquid before </head> or </body> tag
it's a good practice to organize your styles into separate CSS files and include them in the appropriate sections of your Shopify theme. This follows best practices for web development, making your code more modular, reusable, and maintainable.
Thanks
Hello @lelestore1 👋
In Shopify Admin, you can go to Edit code, open the file base.css and add one of these code at the bottom
Hide the title
.page-title {
display: none;
}
Center the title
.page-title {
text-align: center;
}
Hi @lelestore1
If you wan to hide the title of those pages, please add this code in your Online store > Themes > Edit code > theme.liquid before </head> tag
<style>
.main-page-title { display: none !important; }
</style>
If you want to align center it, please use this code
<style>
.main-page-title { text-align: center !important; }
</style>
- Found this helpful? Hit "Like" and "Accept as Solution"! Support me: Donate!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
This is an accepted solution.
Hello @lelestore1 ,
Follow these steps:
1. Go to Online Store -> Theme -> Edit code
2. Open your base.css file and paste the following code below:
To hide the title:
.main-page-title {
display: none !important;
}
To center the title:
.main-page-title {
text-align: center !important;
}
Note: Don't use it in theme.liquid before </head> or </body> tag
it's a good practice to organize your styles into separate CSS files and include them in the appropriate sections of your Shopify theme. This follows best practices for web development, making your code more modular, reusable, and maintainable.
Thanks