Streamlining Your Shopify Store: Header Layout & Clickable Brands Demystified
Hey there, fellow store owners! It's your friendly Shopify migration expert here, diving into another fantastic discussion from the community forums. We recently had Roman_S, a store owner using the Horizon 3.1.0 theme, bring up a couple of common customization questions that I think many of you can relate to: tidying up the header layout and making product brands clickable on product pages.
These kinds of tweaks can really elevate your store's user experience, so let's break down the conversation and see what insights we can gather from the collective wisdom of our community.
Tackling the Header Layout Challenge: Icons in the Top Row
Roman_S's first goal was pretty clear: move the profile and cart icons to the same row as the search icon, ideally resulting in a clean search → profile → cart order. This is a super common request – getting those header elements exactly where you want them can make a big difference in how professional and intuitive your site feels.
The community jumped in with a couple of approaches. Let's look at what was suggested and why it might be a bit trickier than it seems.
The "Move & Shift" Approach
One suggestion came from tim_1, outlining a two-step process:
-
First, change the "Search icon location" in your Header section properties to "Top row." This is a theme setting that can indeed move your search icon up with your logo.
-
Second, add some custom CSS to the "Custom CSS" area of the Header section. Here's the code tim_1 shared:
@media (min-width:750px) { .header__row--bottom .header__column--left { max-width: calc(100vw - 3 * var(--button-size) - 2* var(--page-margin)); } search-button, header-actions { position: relative; top: 50px; /* should match the height of the logo */ z-index:5; } }
Now, here's the kicker: while the first step moves the search icon, the CSS provided by tim_1 actually uses top: 50px; which shifts the search-button and header-actions (where your profile and cart icons live) down. This would effectively push them into a second row, not consolidate them into the single top row with the logo as Roman_S originally envisioned. So, while it's a valid CSS snippet for *some* layout changes, it doesn't quite hit the mark for the specific "all in one row" request.
The "Negative Margin" Attempt
Another community member, Moeed, offered a more direct CSS hack using negative margins to pull the icons up. Here's what Moeed suggested adding to your theme.liquid file, just before the



