Hi,
If I want to make the main page when I am scrolling down, the header become black color too. How should I do? Thanks.https://phantomgogo.com/
A user wants to change their Shopify store’s header color to black when scrolling down on the main page.
Initial Responses:
Solution Provided:
A detailed step-by-step coding fix was shared:
styles.css file#pageheader elements to set background colors (transparent for one state, black for scrolling)Outcome:
The original poster thanked the community, indicating the solution was helpful. The issue appears resolved with the provided CSS code snippet.
Hi,
If I want to make the main page when I am scrolling down, the header become black color too. How should I do? Thanks.https://phantomgogo.com/
Hey, @Kathy518
I’m not formally trained in code to provide you with an exact solution to change the color of your homepage header color. However, I’m confident one of our Shopify experts would be able to accomplish this at a reasonable price.
Just wanted to share this as an option in case you are unable to find a coding solution in your thread.
If there is anything else I can help you with, please let me know.
I may need the coding solution. Thank you!
Hi @Kathy518 ,
You can follow the instructions below to make your header black when scrolling down.
From you Admin page, go to Online store > Themes > click the three dots > Edit code
Open styles.css file under the Asset folder.
Add the code below at the very end the file
div#pageheader {
background: black;
}
div#pageheader.pageheader--transparent {
background: transparent;
}
Thanks a lot.