How to center align logo in desktop and mobile version

I tried many things by searching on google but I couldn’t get the job done. I want the logo of my website to be center aligned on desktop and mobile. Also I want the search icon to be eliminated in mobile version. The theme I’m using is warehouse. Quick help would be appreciated.

Mobile Issue Screenshot:

Desktop:

1 Like

Hi @_WB

Would you mind to share your Store URL website? with password if its unpublish. Thanks!

Hi, the store URL is

cee644-2.myshopify.com

I have it published as of now.

Hi @_WB ,

You can center your logo following these steps:

  1. Open your online store, open your theme, choose edit code:

  2. Find the file names theme.css and patse the code below:

.header__logo-image {
   position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: 0;
    bottom: 0;
}
.header__inner {
   min-height: 50px;
}

Hope it helps @_WB

1 Like

Hi,

The solution worked perfectly for the logo alignment. Could you help with the removal of the search icon as well(in the mobile version)? Thanks

Hi @_WB

You can remove search icon in the mobile with this code:

.header__action-item a[data-action="toggle-search"] {
	display: none;
}

Just find the file names theme.css in your theme and paste the code i mention

Hope it helps @_WB

Thanks! It worked perfectly.