Help Correcting Icons in Header

Topic summary

A user seeks help aligning header elements in their Shopify store theme. The issues include:

Desktop view:

  • Menu bar needs to move down slightly
  • Search, account, and bag icons need to align with menu bar

Mobile view:

  • Shopping bag and search icons need repositioning to the right
  • Close (“x”) button in menu needs proper placement

A developer provides CSS code solutions targeting the base.css file. Initial code addresses mobile icon positioning and close button placement using header-drawer, .icon-close, and .header__icons classes with specific margin and positioning adjustments.

After the user confirms mobile changes worked but requests hamburger menu alignment, the developer provides updated CSS code that:

  • Sets header-drawer height to 40px for proper alignment
  • Positions the close button at 30% left on desktop, 5% on mobile
  • Maintains right margin adjustments for header icons

The solution successfully resolves all reported issues. The user confirms satisfaction with the final result.

Summarized with AI on November 4. AI used: claude-sonnet-4-5-20250929.

Hello!

I would be eternally grateful if you could assist with correcting the pain points in my header.

  1. Move the menu bar down slightly. (image 1)

  2. Move the search, account and bag up to align with the menu bar (image 1)

  3. In mobile view, the shopping bag and search need to be moved over to the right. (image 2)

  4. The “x” in the menu should be on the right.

RIGHTEOUS OFFICIAL

right5785*

Dawn version

Open base.css file from your theme code editor and paste these at the very bottom of everything

header-drawer{

align-self: end;

}

@media(max-width:749px){

.header__icons{

margin-right: -20px;

}

.icon-close{

bottom: -20px;

right: 10px;

z-index: 10;

}

}

Hello @Shadab_dev ,

I followed the instructions however nothing changed.

Hi @ErhatRO It did take effect. The login, search are more to the right and x in on the right as well

Hi @Shadab_dev Apologies! I was checking the desktop view. Mobile view has changed. Thank you!

Is there a separate code to move the hamburger menu down to align with the icons search and shopping icon in mobile view?

header-drawer{

align-self: end;

height: 40px;

}

.icon-close{

left: 30%;

}

@media(max-width:749px){

.header__icons{

margin-right: -20px;

}

.icon-close{

left: 5%;

}

}

Paste this code the menu icon will align. and x will be on the right. I have changed the x on mobile to be on left rather than right since it interferes with the links below. I was actally doing it for mobile thus you were not seeing the effect. the x is on the right now on desktop

1 Like

Please paste the new code and see instructions

This is great thank you!!

1 Like