Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Changing the background behind a sticky header to transparent when scrolling

Solved

Changing the background behind a sticky header to transparent when scrolling

karenbut40
New Member
5 0 0

Hey,

I have changed my border to transparent, however I have seen on another site when you scroll you can have just the menu a white bar. the area behind the logo stays transparent.

I have included a example. I'm using the broadcast theme,

if anyone can advise that would be great!

 

Screenshot 2021-06-30 at 21.58.30.png

Accepted Solution (1)

LitExtension
Shopify Partner
4877 1003 1169

This is an accepted solution.

Hello,

Please follow the steps:
- Step 1: Go to Online store > Themes > Actions > Edit code.
- Step 2: Go to Assets > theme.css and paste this at the bottom of the file:
.js__header__stuck .header__desktop__upper {
background: transparent !important;
}

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify

View solution in original post

Replies 6 (6)

David_Weru
Shopify Partner
178 16 43

Hello, @karenbut40 

You can create an eventlistener for scrolling and have one style rule in force when scrolling and another when not scrolling.

Here's the onscroll event listener.

https://www.w3schools.com/jsref/event_onscroll.asp

 

If you'd like further assistance setting this up, please let me know.

Kinjaldavra
Shopify Partner
2303 570 1426

hello @karenbut40 

Please share your site URL,
I will check out the issue and provide you a solution here

karenbut40
New Member
5 0 0

Hi,

thank you!

the site URL is luxeliaa.myshopify.com

do you need the password?

karenbut40
New Member
5 0 0

hi

 

thanks for your reply! what would I need to use for the below effect? 

 

the first image is when its not scrolled and the second when you scroll down the page

Screenshot 2021-07-01 at 08.50.41.pngScreenshot 2021-07-01 at 08.50.46.png

 

 

my currently looks like this. I'd also like the logo bigger like the above page if you can help with that?

 

Screenshot 2021-07-01 at 08.53.08.pngScreenshot 2021-07-01 at 08.53.13.png

LitExtension
Shopify Partner
4877 1003 1169

This is an accepted solution.

Hello,

Please follow the steps:
- Step 1: Go to Online store > Themes > Actions > Edit code.
- Step 2: Go to Assets > theme.css and paste this at the bottom of the file:
.js__header__stuck .header__desktop__upper {
background: transparent !important;
}

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
karenbut40
New Member
5 0 0

hey!

 

Thanks so much that worked. I have another question,

 

When I insert my logo as a image it comes up very small. do you know how to make it bigger?