Transparent Header

Solved

Transparent Header

middlebeats
Shopify Partner
19 0 6

How can I make a Transparent Header that remains Transparent while scrolling in the Monaco Theme?

Accepted Solution (1)
Moeed
Shopify Partner
7704 2070 2550

This is an accepted solution.

Hey @middlebeats 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.header {
    background: transparent !important;
}
</style>

RESULT:

Moeed_0-1722427257553.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 8 (8)

Moeed
Shopify Partner
7704 2070 2550

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

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


middlebeats
Shopify Partner
19 0 6

Hey @Moeed,

Store URL: fatat-jewellery.myshopify.com

Password: fatat

Moeed
Shopify Partner
7704 2070 2550

Hey @middlebeats 

 

Your website already has a transparent header and is transparent on scroll too.

Moeed_0-1722426949640.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


middlebeats
Shopify Partner
19 0 6

Thank you, but no it's not transparent when you scrollScreenshot 2024-07-31 at 2.57.42 PM.png

 

 

Moeed
Shopify Partner
7704 2070 2550

This is an accepted solution.

Hey @middlebeats 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.header {
    background: transparent !important;
}
</style>

RESULT:

Moeed_0-1722427257553.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


dws_pvt_ltd
Shopify Partner
369 69 87

Hello @middlebeats, Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css"
6. 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.

 

Helpful? then please Like and Accept the Solution.
For any inquiries, please feel free to contact via WhatsApp and Email: sales@dolphinwebsolution.com.
For more information visit our website Dolphin Web Solution Pvt Ltd.

Rahul_dhiman
Shopify Partner
855 168 186

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
17.png


If this was helpful, hit the like button and mark the job as completed.
Thanks

Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages

Small_Task_Help
Shopify Partner
1111 53 110

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

To Get Shopify Experts Help, Click Here or E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Expert India
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad