Re: Need help centering logo on mobile website

Solved

Need help centering logo on mobile website

nexgengadgets
New Member
9 0 2

When I view my site on desktop the logo is fine, but on mobile for some reason it is on the right side. Does anybody know how I could fix this so that the mobile logo is in the center top?

 

website: www.nexgengadgetsus.com

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9579 2279 2828

This is an accepted solution.

Hi @nexgengadgets 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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 (max-width: 749px){
.section-header .header {
    display: grid !important;
    padding-bottom: 70px;
}

.EzfyHeaderSearch.EzfyHeaderSearch-- {
    position: absolute;
    left: 25%;
    top: 60%;
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1736545180496.png

     

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

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 2 (2)

Made4uo-Ribe
Shopify Partner
9579 2279 2828

This is an accepted solution.

Hi @nexgengadgets 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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 (max-width: 749px){
.section-header .header {
    display: grid !important;
    padding-bottom: 70px;
}

.EzfyHeaderSearch.EzfyHeaderSearch-- {
    position: absolute;
    left: 25%;
    top: 60%;
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1736545180496.png

     

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

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 ⚙️.
nexgengadgets
New Member
9 0 2

Thank you! It was able to fix the logo and have it centered on every page. But now there is an issue where the search bar is not centered anymore and it is slightly to the right on mobile view