Shopify themes, liquid, logos, and UX
I'm trying to center my logo in the header of my taste theme for the password page, however, there isn't an option to do it within the theme settings like you can for the homepage of this theme. Can someone please help with centering it? Thank you!
My website is cultureclubworldwide.com
check 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:
@media only screen and (min-width: 750px) {
.password-header {
grid-template-columns: 1fr;
}
img.password-logo {
justify-self: center;
}
}
And save.
Result:
Thank you! It looks centered on mobile, however on web it isn't quite centered. Centered would be a little more to the right:
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
@media only screen and (min-width: 750px) {
.password-header {
gap: unset !important;
}
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify 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, 2025