How can I make a Transparent Header that remains Transparent while scrolling in the Monaco Theme?
Hey @middlebeats
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
Hey @middlebeats
Your website already has a transparent header and is transparent on scroll too.
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hello @middlebeats , Please follow these steps to add this CSS code:
- Go to your Online Store
- Click on “Themes”
- Select “Edit code”
- Open your CSS file. If you have a custom CSS file, open that instead.
- If you can’t find your custom CSS file, open “base.css”
- Add the following code at the end of the file.
[data-scheme=light] .header:hover, [data-scheme=light] .header_overlay-scroll,
[data-scheme=dark] .header_overlay-scroll {
background-color: transparent !important;
}
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.
Hey @middlebeats
Follow these Steps:
-
Go to Online Store
-
Edit Code
-
Find theme.liquid file
-
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi @middlebeats
Go to online store ---------> themes --------------> actions ------> edit code------->base.css ----> line number 723
search this code
@media (prefers-color-scheme: light) {
:root [data-scheme=auto] .header_overlay-scroll {
--color-foreground: var(--color-base-text);
--color-link: var(--color-base-text);
--color-foreground-title: var(--color-title-text);
--color-button: var(--color-base-button-background);
--color-button-text: var(--color-base-solid-button-labels);
--color-button-secondary: var(--color-base-outline-button-labels);
--color-social: 0, 0, 0;
background-color: rgba(var(--color-background));
}
}
and replace with this code.
@media (prefers-color-scheme: light) {
:root [data-scheme=auto] .header_overlay-scroll {
--color-foreground: var(--color-base-text);
--color-link: var(--color-base-text);
--color-foreground-title: var(--color-title-text);
--color-button: var(--color-base-button-background);
--color-button-text: var(--color-base-solid-button-labels);
--color-button-secondary: var(--color-base-outline-button-labels);
--color-social: 0, 0, 0;
}
}
result
If this was helpful, hit the like button and mark the job as completed.
Thanks
Hi,
Add Custom CSS
CSS code example
/* Make header transparent */
.site-header {
background-color: transparent;
position: fixed; /* Ensure the header stays fixed at the top */
width: 100%;
z-index: 1000; /* Ensure the header is above other elements */
transition: background-color 0.3s ease; /* Smooth transition effect */
}
/* Optional: Adjust header elements color for better visibility on transparent background */
.site-header a,
.site-header .menu,
.site-header .logo {
color: white; /* Adjust to your preference */
}
/* Ensure there is no background when scrolling */
body {
margin-top: 0; /* Prevent any top margin that might be added */
}
Ensure no JavaScript interference



