Elevate Your Shopify Horizon Theme: A Guide to Customizing Your Sticky Header Background Image

Hey everyone! You know how it goes – you’ve got your Shopify store looking sharp, but then you spot that one little detail that just isn’t quite right. For many of us, it’s the header, especially that ever-present sticky header that follows your customers down the page. It’s a prime piece of real estate, and getting its look just right can make a huge difference in your store’s brand appeal.

Recently, our vibrant Shopify community had a great discussion around this very topic, specifically for those using the Horizon theme. Our community member, brandonholliday, reached out asking for help to change the background image for their sticky header. It's a common dilemma: themes often give you basic color options, but what if you want a striking image there?

The Sticky Header Challenge in Horizon

brandonholliday was looking to replace the existing background with a specific image. This wasn't just about changing a color – it was about adding a visual element to make the sticky header pop. They shared a screenshot of their current header and their store URL (password: supersuite), which is always super helpful for the community to provide accurate advice!

Screenshot 2026-05-14 at 6.37.26 PM

Initially, some community members like Moeed offered solutions for changing the header's color, which is a great starting point, but brandonholliday quickly clarified, “No, I want to replace it with an image. This one https://cdn.shopify.com/s/files/1/0830/4603/9794/files/Ocean_a4c69b48-cee2-4418-be14-f73043581eb0.png?v=1778794011”. This kind of clear feedback is invaluable in the forums!

The Go-To Solution: A Little CSS Magic

As emilyjhonsan98 wisely pointed out right at the start of the thread, changing the background of a sticky header often calls for a small CSS adjustment. Most themes, including Horizon, might not offer this specific control directly in the theme editor. That’s where a quick dive into your theme’s code comes in handy.

Step-by-Step: Adding a Background Image to Your Sticky Header

Here’s a general approach, combining insights from the community, on how you can add a background image to your sticky header in the Horizon theme (or similar themes):

  1. Upload Your Image: First things first, you need to get your desired background image into your Shopify files. Go to Settings > Files and upload your image. Once uploaded, copy the URL of the image. You'll need this shortly.
  2. Access Your Theme Code: From your Shopify admin, navigate to Online Store > Themes. Find the Horizon theme you want to edit (ideally, make a duplicate first!) and click Actions > Edit code.
  3. Locate Your CSS File: In the code editor, look for your main CSS file. It's often named base.css, theme.css, or sometimes sections-css.liquid or something similar within the Assets folder. You can add your custom CSS at the very bottom of this file.
  4. Identify the Correct Selector: This is the crucial part. You need to target the specific CSS class that controls your sticky header. Based on common Shopify theme structures and emilyjhonsan98's suggestions, you'll likely be looking for classes like .header-wrapper--sticky or .site-header. In some cases, for specific elements, it might be .header__underlay as suggested by Moeed for color changes. You might need to use your browser's developer tools (right-click > Inspect) to pinpoint the exact class for the sticky state of your header.
  5. Add Your CSS Snippet: Once you have the correct selector and your image URL, add a CSS snippet like this to the bottom of your chosen CSS file:
.header-wrapper--sticky { /* Or .site-header, or the specific class you found */
    background-image: url('YOUR_IMAGE_URL_HERE');
    background-size: cover; /* Adjust as needed: cover, contain, 100% 100% */
    background-position: center center; /* Adjust as needed */
    background-repeat: no-repeat;
    /* You might need !important if other styles are overriding */
    /* background: url('YOUR_IMAGE_URL_HERE') center center / cover no-repeat !important; */
}

Remember to replace 'YOUR_IMAGE_URL_HERE' with the URL you copied in Step 1. The background-size and background-position properties are important for making sure your image looks good within the header area.

Beyond the Code: Design Considerations

Once you’ve got the image in place, it’s not just about functionality – it’s about aesthetics too! mastroke highlighted a super important point after seeing brandonholliday's successful implementation:

image

“Just change the text color from black to white so it will be clearly visible.” This is critical! Your logo and navigation links need to stand out against your new background. Consider contrasting colors for text and icons, or even adding a subtle overlay to your background image to ensure readability. Wsp and Moeed also chimed in with screenshots confirming the successful image application:

image

image

A Modern Approach: Consider App Blocks

One final, but very important, piece of advice came from emilyjhonsan98: “However, before you touch the code, check if your theme supports App Blocks. Many modern stores are moving away from hard coding these changes because they can break during theme updates.” This is a fantastic point. While direct CSS is powerful, it can be overwritten or cause conflicts with future theme updates. If your theme and the desired customization allow for it, using App Blocks or a dedicated app for header customization can be a more resilient approach, keeping your modifications separate from the core theme files.

It’s always awesome to see the community come together to solve these challenges! brandonholliday got their sticky header looking exactly how they wanted, thanks to some precise CSS and great advice on visual harmony. Whether you go the direct CSS route or explore App Blocks, remember to always duplicate your theme before making code changes, and keep an eye on how your customizations impact overall design and user experience. Happy customizing!

Share:

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools