x

Hamburger Visibility Issue in Birdseye 2

The mobile Hamburger blends in with background (which is black) until scrolling happens (and it turns white). How do I change the color to white all the time? I am willing to modify the CSS and HTML. I have looked at some other posts but have mainly gotten dead ends. Any help is appreciated. Thank you so much!

3,418 Views
Message 1 of 12
Report
1 Best Answer

Best Answer

@Siffrin You'll need to make a change to the hamburger span color that applies before you scroll down the page. The span changes color from black to white following page scroll which is fine if the containing header bar changes color from white to black on scroll. However, in this case, since the header bar is always black, you'll need to ensure that the hamburger span is always white.

In the site css, you'll need to find the hamburger span class within the 992px media query (992px is the viewport breakpoint at which the regular full navigation menu switches over to the hamburger menu). This is where you'll find the span color attribute - the span background color is changed to #000000 (black) and you'll need to change it to white (#ffffff). There are a lot of instances in the css of the hamburger span selector. Again you'll need to look for the one in the 992px media query (identified by the query statement "@media screen and (max-width: 992px)") and the code block in question looks like this:

.hamburger span, .hamburger span:before, .hamburger span:after {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    background: #000000;
    content: '';
    -webkit-transition: all 200ms ease-in-out;
    -moz-transition: all 200ms ease-in-out;
    -ms-transition: all 200ms ease-in-out;
    transition: all 200ms ease-in-out;
}

To address your shopping cart number background color and text color, you'll need to find the  wsite-nav-cart-num id within the body.affix class (that's the scroll class) and change the background color from white to black and the color from black to white (i.e., change background color from #ffffff to #000000 and color from #000000 to #ffffff). The code block you're looking for in the css is this:

body.affix .birdseye-header .nav #wsite-nav-cart-num, body.no-header-page .birdseye-header .nav #wsite-nav-cart-num, body.splash-banner-page .birdseye-header .nav #wsite-nav-cart-num {
    background: #ffffff;
    color: #000000;
}

View Best Answer >

3,384 Views
Message 13 of 12
Report
11 REPLIES 11
Square

Welcome to the Community, @Siffrin! Thanks for making your first post.

On the Theme tab of the website editor, have you clicked "Dark" to use the dark version of the theme? Normally that will make sure that the menu is something that will contrast against a dark background.

3,396 Views
Message 13 of 12
Report

@Adam Thank you so much for your reponse! yes the theme is dark. This is the problem.  imageBefore Scrolling-MobileimageAfter Scrolling-MobileimageBefore Scrolling-Desktop (No Issue)imageAfter Scrolling- Desktop (No Issue)

Also would there be a way to make the background of the cart number count black?

Many Thanks,

Siff (Siffrin)

3,394 Views
Message 13 of 12
Report

Best Answer

@Siffrin You'll need to make a change to the hamburger span color that applies before you scroll down the page. The span changes color from black to white following page scroll which is fine if the containing header bar changes color from white to black on scroll. However, in this case, since the header bar is always black, you'll need to ensure that the hamburger span is always white.

In the site css, you'll need to find the hamburger span class within the 992px media query (992px is the viewport breakpoint at which the regular full navigation menu switches over to the hamburger menu). This is where you'll find the span color attribute - the span background color is changed to #000000 (black) and you'll need to change it to white (#ffffff). There are a lot of instances in the css of the hamburger span selector. Again you'll need to look for the one in the 992px media query (identified by the query statement "@media screen and (max-width: 992px)") and the code block in question looks like this:

.hamburger span, .hamburger span:before, .hamburger span:after {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    background: #000000;
    content: '';
    -webkit-transition: all 200ms ease-in-out;
    -moz-transition: all 200ms ease-in-out;
    -ms-transition: all 200ms ease-in-out;
    transition: all 200ms ease-in-out;
}

To address your shopping cart number background color and text color, you'll need to find the  wsite-nav-cart-num id within the body.affix class (that's the scroll class) and change the background color from white to black and the color from black to white (i.e., change background color from #ffffff to #000000 and color from #000000 to #ffffff). The code block you're looking for in the css is this:

body.affix .birdseye-header .nav #wsite-nav-cart-num, body.no-header-page .birdseye-header .nav #wsite-nav-cart-num, body.splash-banner-page .birdseye-header .nav #wsite-nav-cart-num {
    background: #ffffff;
    color: #000000;
}
3,385 Views
Message 13 of 12
Report

Hi there!

Thank you so much! And so sorry for the late reply. And I'm so sorry but as I'm so new with this, I am not sure where to look to change the code (which css file it is in...u.kit, responsives.less etc. So sorry for the extra trouble, you've been a great help! Thank you!

Siff

3,349 Views
Message 13 of 12
Report

@PaulMathews 

Thank you so much! This is exactly what I was looking for! But unfortanetly, as I am new I am unsure as to where to find the code to replace (picture of what I'm talking about attached below) Do you think you could help me out and point me in the right direction? So sorry for the late response and confusion. Thank you!

Siff

image

3,347 Views
Message 13 of 12
Report

Woops! Sent things twice! Sorry!

3,346 Views
Message 13 of 12
Report

@PaulMathews @Adam 

Anyone home? Sorry, looked around again and still don't know where to put it...help would be very much appreciated!!!

Siff

3,326 Views
Message 13 of 12
Report

@Siffrin @Adam I'm not familiar with that particular theme. The site css is clearly divided into multiple sections each of which is contained in its own .less file. The base theme I typically use has all the css in the main.less. I can't specifically tell which less file to do your search in (for the hamburger components). It's not the last one (variables.less) as that is the LESS parameter file. I'd start with the main.less file (do a search in the code pane using the magnifier at the top of the pane for the code elements I indicated in my first response). If you don't find it in main.less then it's in one of the other less files so search each until you find the right one.

3,319 Views
Message 13 of 12
Report
Square

@Siffrin, you also may want to look in _nav.less if you didn't find anything in variables.less.

3,315 Views
Message 13 of 12
Report

Thank you Thank you Thank you!!! You guys are genuises! For the hamburger it was in _responsive.less  And the Cart Count was in _nav.less. OH MY GOD GUYS!!! Thank you so much!!! Problem Solved!

Siff

1,455 Views
Message 13 of 12
Report

@Adam @PaulMathews Thank you so much! I'll et you know how it goes!

1,523 Views
Message 13 of 12
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.