Moving logo all the way to the left and other symbols on the right (mobile) horizon shopify

Hi!

I am looking to move my logo all the way to the left of my mobile site and everything else to the right like the photo attached. I am using Horizon

All codes that I have entered in base.css or theme.liquid that I have found online, only work for the desktop and not my mobile site.

Please help! Thanks!!

Theft of a registered trademark is illegal. Probably wise to create your own, unless you like being sued, fined, and your stuff confiscated….

1 Like

Sorry, you didn’t understand. My website is www.vishfi.com.br and the Nike image is just an example.

1 Like

OK. Does your code have this first?

@media screen and (max-width: 750px)

Example:

@media (max-width: 767px){

.header-item--left{

max-width: 20px !important;

margin-right: 10px !important;

}

}

I haven’t made any changes yet; I need step-by-step instructions. Should I add the code you sent to base.css?

Below is an image of how I wanted to leave it.

@vishfi can you please share your password to view page? if you do not want to public it then you can DM it

1 Like

Hi, how are you? Of course, here’s the password: vshfacessa

@vishfi add this css to the very end of your styles.css file and check, should look like screenshot below

@media screen and (max-width: 749px) {
.header__drawer{grid-area: rightA !important;}
.header__columns .search-action{grid-area: rightA !important; margin-left: 45px !important;}
.header__columns .header-logo { grid-area: leftA !important; }
.header__columns{grid-template-areas: "leftA rightB" !important;    --header-template-columns: 2 !important;}
}

1 Like

I added the base.css file because the style.css file isn’t in the theme. It changed, but now there’s a bug. Take a look at the website.

1 Like

@vishfi checking it ,

@vishfi please remove entire last css and try this

@media screen and (max-width: 749px) {
.header__drawer{grid-area: rightB !important;}
.header__columns .search-action{grid-area: rightB !important; margin-left: 45px !important;}
.header__columns .header-logo { grid-area: leftA !important; }
#header-component .header__columns{grid-template-areas: "leftA rightB" !important;    --header-template-columns: 2 !important;}
}
1 Like

It seems to work, but I noticed the logo isn’t completely in the corner and the icons are quite far apart. I’d like it to look exactly like in the image. Is that possible? Sorry for asking too much.

@vishfi right now it is adjustment as your theme code structure is not easy to have this like exactly you want, basically all the content is divided into 3 parts and hence it has few limitations. You will have to reform the entire header for mobile view

for logo to be left please remove below line

.header__columns .header-logo { grid-area: leftA !important; }

and replace it with this

.header__columns .header-logo {grid-area: leftA !important;  justify-content: left;        padding-left: 10px;}
1 Like

Instead of that code, try to paste this into “Custom CSS” of the header section:

@media screen and (max-width: 749px) {
  .header__columns {
    --header-template-columns: 1fr var(--header-mobile-bookend) var(--header-mobile-bookend) var(--header-mobile-bookend) var(--header-mobile-bookend);
    grid-template-areas: "center leftA leftB rightA rightB";
  }

  .header__columns .header-logo {
    justify-content: flex-start;
    padding: 1rem;
  }
}
1 Like

@suyash1 I added the code from @tim_1 and it seems to work better, but the icons on the right are still spaced out. Does the suggestion you mentioned above apply to the code he provided? You can see the changes; I’ve already saved it.

@vishfi yes, the issue is content is divided into various sections and not added in same sections to have uniform spacings. It is theme coding

you will need to add spaces individually for each icon to make it uniform

1 Like

This is default theme spacing.
Frankly, You would not want to make it less – some people has fat fingers.

1 Like

Okay, so where can I find that line to replace it? Is it in base.css?

@vishfi yes, spacing for each icon can be adjusted by adding custom css to base.css

1 Like