Shopify themes, liquid, logos, and UX
Hi, how to make the logo in the center and the menu on the left? It's crave theme.
Thanks a lot!
Website: aromeli.com
Solved! Go to the solution
This is an accepted solution.
Hi @ugneugne
Which screen is this? Desktop of Mobile?
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:
In the mobile:
@media screen and (max-width: 989px){
.header--mobile-left {
grid-template-columns: 1fr auto 1fr;
}
.header--mobile-left .header__heading, .header--mobile-left .header__heading-link {
justify-self: center;
}
}
In the Dekstop:
@media screen and (min-width: 990px) {
.header--middle-left {
grid-template-areas: "navigation heading icons" !important;
grid-template-columns: 1fr auto 1fr !important;
}
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
@ugneugne - please open your customize settings and check if you have any settings in the header section to make logo center.
if no then custom code editing is needed
Hey @ugneugne,
Please use this CSS code in the Custom CSS box in the theme customizer -> settings
h1.header__heading {
grid-column: 2;
width: 100%;
display: flex;
justify-content: center;
transform: translateX(-15%);
}
nav.header__inline-menu {
grid-column: 1;
}
Which you can find here
Hi! Thanks a lot, it worked partially!
This is an accepted solution.
Hi @ugneugne
Which screen is this? Desktop of Mobile?
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:
In the mobile:
@media screen and (max-width: 989px){
.header--mobile-left {
grid-template-columns: 1fr auto 1fr;
}
.header--mobile-left .header__heading, .header--mobile-left .header__heading-link {
justify-self: center;
}
}
In the Dekstop:
@media screen and (min-width: 990px) {
.header--middle-left {
grid-template-areas: "navigation heading icons" !important;
grid-template-columns: 1fr auto 1fr !important;
}
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Thanks a lot this worked wonders! 😎
Hello @ugneugne
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>
Desktop View:
@media screen and (min-width: 990px){
.header--middle-left {
grid-template-areas: "navigation heading icons" !important;
grid-template-columns: 1fr 1fr auto !important;
}
}
Mobile view:
@media screen and (max-width: 767px){
.header {
padding: 10px 1rem !important;
}
.header__icons {
justify-self: center !important;
padding-right: unset !important;
align-items: center !important;
}
}
</style>
Thank you!
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024