Hi,
I am using the craft template however the logo in the mobile version is not centered. would anyone be able to assist on how this can be resolved?
Thanks
Denise
A user reported that their logo appears off-center on mobile devices when using Shopify’s Craft theme. The issue stemmed from an asymmetrical header layout: one icon on the left side versus two icons on the right, creating a visual imbalance.
Root Cause:
The header grid structure wasn’t properly distributing space, causing the logo to appear shifted despite being technically centered.
Solutions Offered:
.header__logo and .header--mobile-left classesResolution:
The issue was resolved using CSS code added to the theme’s base.css file, which adjusted the grid template columns and centered the heading alignment specifically for mobile views. The user confirmed the fix worked successfully.
Hi,
I am using the craft template however the logo in the mobile version is not centered. would anyone be able to assist on how this can be resolved?
Thanks
Denise
Hello @deniseagius23
would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.
.header__heading {
text-align: center !important;
}
Hey there! The issue with your logo not being centered on mobile in the Craft theme is likely due to CSS rules for the header layout. Here’s how to fix it:
Locate the CSS File:
Add Custom CSS: Add the following code to target the mobile version of your logo:
@media (max-width: 768px) { /* Target mobile screens */
.header__logo {
display: flex;
justify-content: center; /* Centers the logo horizontally */
align-items: center; /* Centers the logo vertically, if necessary */
margin: 0 auto; /* Prevents any unintended left/right margins */
text-align: center;
}
.header__logo img {
max-width: 100%; /* Ensures logo scales properly */
height: auto; /* Maintains the aspect ratio */
}
}
Replace .header__logo with the actual class name used for the logo in the Craft theme, if it’s different.
Save and Preview:
If you prefer a simpler solution, EasyEdits allows you to visually adjust and preview header alignments without touching code. You can make edits during the free trial and keep them forever. Fair disclaimer I am the developer, and can answer any questions!
Let me know if you need help identifying the class name or tweaking further! (Website URL and password, if needed, would be helpful!)
Please, share your store URL. Thanks!
Hi @deniseagius23 ,
As checked, it is because there are 2 icons on the right side, but only 1 on the left side so the Logo is not centered.
Can you share your store URL so that I can check further?
Best,
Daisy
Hi.
https://atr5nx0vjvccq33d-89506611531.shopifypreview.com
Please let me know if you are able to access with this link.
Many Thanks
Denise
Hi.
https://atr5nx0vjvccq33d-89506611531.shopifypreview.com
Please let me know if you are able to access with this link.
Many Thanks
Denise
Thank you for the info. The logo is already centered, but it appears off-center because there is one icon on the left and two icons on the right. Do you like to remove one icons on the right or adjust the to make it more right?
Hi. I would like to keep all icons if possible. Can the logo and the icons on the right be moved to the right to centre the logo?
Thanks
Denise
Update to Shop URL: https://uhwfbz-y3.myshopify.com/
Yep sure, let me know if this enough.
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hi. Unfortunately this did not work for me.
Thanks
Denise
Hello @deniseagius23
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
RESULT:
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Try this one again. Same instruction.
And Save.
Result:
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hello @deniseagius23 ,
Here are the steps to apply the necessary changes in your Shopify store:
body .header--mobile-left {
grid-template-columns: 1fr 2fr 1fr;
}
.header--mobile-left .header__heading, .header--mobile-left .header__heading-link {
text-align: center !important;
justify-self: center !important;
}
Let me know if you need further assistance!
Thanks this worked ![]()
Thanks this worked.
Welcome! Would you mind hitting ‘like’ as well? Thanks!