How can I center the logo and move the menu to the left in Crave theme?

Solved

How can I center the logo and move the menu to the left in Crave theme?

ugneugne
Excursionist
12 0 4

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

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9691 2306 2879

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:

Made4uoRibe_0-1706116753840.pngMade4uoRibe_1-1706116765366.png

 

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 7 (7)

suyash1
Shopify Partner
10485 1290 1651

@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

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.

ThePrimeWeb
Shopify Partner
2139 616 515

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

ThePrimeWeb_0-1706113960519.png

 

 

Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!
ugneugne
Excursionist
12 0 4

Hi! Thanks a lot, it worked partially! Screenshot 2024-01-25 at 09.34.27.png

Made4uo-Ribe
Shopify Partner
9691 2306 2879

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:

Made4uoRibe_0-1706116753840.pngMade4uoRibe_1-1706116765366.png

 

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
ugneugne
Excursionist
12 0 4

Thanks a lot this worked wonders! 😎

niraj_patel
Shopify Partner
2386 516 510

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>

techlyser_web_0-1706117710919.png

techlyser_web_1-1706117957263.png

 

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
ugneugne
Excursionist
12 0 4

Thank you!