How to change background color of the iPhone 13 bezel/notch above the store logo?

Hi,

I’m trying to find where in the Theme code I can change the background color of the part of the screen above the store logo, which part is only visible in the more recent iPhone models without the classic bezel.

I’ve attached a screenshot below to illustrate what I mean; there is a grey bar (encircled in green) on top of the screen above the store logo, which color should simply match the background color of the homepage. I can’t figure out where in the Theme code this can be modified.

Many thanks.

Hi @Maximus000 ,

This is Richard from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Layout->/theme.liquid->paste below code in here:


I hope it would help you
Best regards,

Richard | PageFly

Based on the screenshot you provided, it appears that you are using the Debut theme. To change the background color of the part of the screen above the store logo, you can follow these steps:

  1. From your Shopify admin, go to “Online Store” > “Themes”.
  2. Click on “Actions” > “Edit code” for the Debut theme.
  3. In the left sidebar, navigate to “Assets” and click on “theme.scss.liquid”.
  4. Scroll to the bottom of the file and add the following code:
.site-header__mobile-nav-wrapper {
  background-color: #your-color-here;
}
​

Replace “your-color-here” with the hex code or name of the color you want to use.

  1. Save your changes and preview your website to see the updated background color above the store logo.

Note that if you want to change the background color of the header area on other devices as well, you may need to add additional code to target those specific devices. You can use media queries to target different screen sizes and adjust the styles accordingly.

Thank you for the suggestion. I’ve tried this (with the added hex clolor code, in casu #FFFFFF), but unfortunately the issue persists. The background color above the store logo in mobile remains the same.

PM me with Store URL

Hi, thank you for replying. Appreciate it.

However, I’m not sure how to understand and implement your suggestion. Some questions I have in this regard:

(1) What does name “theme color” refer to? why do I need to add this?

(2) content= “red” : what does “red” refer to? Do I need to modify to the color I want? I.e. “white”?

(3) what is the reasoning behind this html code? I would like to understand what the suggested html code does, before implementing it.

Many thanks.

Hi @Maximus000 ,

Meta theme-color to change the background color of the browser bar.

Red color is just an example, you can change another color to match your website
You can refer to this link to learn more about it:

https://css-tricks.com/meta-theme-color-and-trickery/

Note: There are some browsers that may not be supported when using that Meta.

I hope it would help you
Best regards,

Richard | PageFly