I go crazy for days now with my header. I am a newbie at website building, but this community has helped already a bunch, so I thought to give it a try:
In the Dawn Theme, on the home page, I like to make the Header transparent so that the Hero image comes to full focus. Once, the use scrolls down, the header should appear in a normal behavior (for me, it’s not that important whether the header is sticky or not ). This should only happen on the home page.
I tried already all of potential solution, I have found in here (at least, that’s my feeling). One made the header transparent only, another one worked but then screwed up the headers for the other subpages and another messed-up the mobile version.
Anyone in here with magic skills, who could help me?
If you edit common area of the store it means it would affect the other pages. But if you dont care if your header sticky or not then maybe it okay to be this code. Try this code.
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”.
Open the “theme.liquid” and paste this code below before this tag .
Hi Ribe, thanks for your feedback. I just followed your instructions, but it did not work out for me, unfortunately.
Also, I forgot to mention, since I am using a dark hero image, the Navigation page names should be in white color first (plus my brand image should be in white), and change to the normal black once the user scrolls down.
Hi Ribe, thanks a lot. It made the Header transparent I changed the hero image, so for now there is no need to make the header in white font.
However, if I scroll down on the home page, the header background is not solid white and overlaps with the site’s content. Once scrolled down, the header should have a white solid background. This same behavior happens on the other subpages as well. The header should have a white solid background. Same behaviour is for the mobile version.
Hi @Made4uo-Ribe , any further ideas to find a solution who to make the header solid white when scrolled down? (and also solid white for all other subpages)
It would be really awesome, if we find a solution here! Really appreciated.