Solved

Crave theme logo in the center

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
5069 1206 1470

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 7 (7)

suyash1
Shopify Partner
8951 1110 1455

@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

To build shopify pages use pagefly
You are welcome to contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Support me

ThePrimeWeb
Shopify Partner
975 254 201

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 a developer? Contact me here
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
5069 1206 1470

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


ugneugne
Excursionist
12 0 4

Thanks a lot this worked wonders! 😎

techlyser_web
Shopify Partner
1004 188 189

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

 

Techlyser || 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!