Goal: On Horizon theme (mobile), place the logo fully left and keep all other header icons on the right, matching the provided screenshots.
Key steps proposed:
Target only mobile with a media query (max-width ~749px).
Re-map header grid areas so logo = leftA, actions (menu/drawer, search, etc.) = rightB, and set grid-template-areas accordingly (in #header-component .header__columns or via Header section’s Custom CSS).
Ensure the logo hugs the left by setting justify-content: flex-start and small left padding.
Prefer a centralized spacing control by defining the CSS variable --header-mobile-bookend (e.g., 40px; default 44px) rather than per-icon margins. Example (in Header Custom CSS): set --header-template-columns with repeated var(–header-mobile-bookend), grid-template-areas “center leftA leftB rightA rightB”, and adjust logo padding.
Notes and constraints:
Theme splits header content into multiple sections, limiting exact replication without refactoring the mobile header.
Wider icon spacing is partly intentional for tap targets; large reductions aren’t recommended.
If styles.css isn’t present, add CSS to base.css or the section’s Custom CSS.
Status: Layout largely achieved; spacing fine-tuning suggested via --header-mobile-bookend. Final confirmation from the requester is pending. Images/screenshots are central to the desired outcome.
Summarized with AI on December 11.
AI used: gpt-5.
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
@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.