Header menu bar to have a white background

Topic summary

Goal: stop the banner image from blending into the header (search/menu) and add a clear white background strip for better readability.

Actions taken:

  • Helpers provided CSS/Liquid edits to theme.liquid (Shopify theme file) to add a white header background. Instructions: Online Store → Themes → Edit code → modify theme.liquid (insert code before or as advised). Images were used to show current vs desired look; code snippets were central but not fully visible here.
  • Result: OP confirmed the white header look worked and requested black font for better contrast. OP also noted a “collection” section overlapping with the image and asked for a plainer style.

Refinement:

  • A revised snippet scoped the change to the homepage using a Liquid conditional (template.name == ‘index’). OP confirmed this met expectations.

Further request (open):

  • OP asked to style all dropdown menus with a light grey background (hex D8D8D8) and black text. A helper provided additional code (to be inserted above ), but OP did not confirm final result.

Status: Header background issue resolved; dropdown styling request pending confirmation. Key terms: theme.liquid (main theme layout), Liquid (Shopify templating language).

Summarized with AI on December 21. AI used: gpt-5.

Hi Shopify friends,

A while ago I wanted to have the banner image merge into the search bar (Like photos attached) but I would like it not to anymore as its not very clear for the search and menu.

Does anyone know how to get it to stop the banner image merging into the top search menu and have a small white background strip so its nice and clear for people to click on the main menu.

2 Likes

Hi @vibehome , You mean like this:

Hi @BSSCommerce-HDL Yes that would be great :grin:

1 Like

Hi @vibehome

Do you mean like this?

You add some over ride code in your theme.liquid. Check this one one if it work.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “theme. Liquid” file. Find the tag and paste the code below before the tag.


And Save.

If this code wont work you need to take out some code on the theme.liquid.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Hi @vibehome ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:


Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

Hi I have just done that. Thanks that just what I wanted.

Can the font be changes to black?

Also the collection section has merged in the image? screen shots attached.

1 Like

Hi there, could it be more like this (screen shot attached) we like it to be more plain if possible.

Hi @vibehome , Pls replace old code to this new code:

{% if template.name == 'index' %}

{% endif %}

Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

Thank you so much! Thats excellent!! :grin:

1 Like

@vibehome , No problem. Glad to help you :heart_eyes:

Hey again, the drop down boxes have a clear background. Can we have this drop down box light grey (

colour code D8D8D8 - with black writing which it already it please

@BSSCommerce-HDL for all drop down on website please

1 Like

Hi @vibehome ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:


Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes: