Okay
  Public Ticket #3018023
Keep Secondary Header Sticky on Mobile
Closed

Comments

  •  10
    Ellison started the conversation

    I am unable to figure out how to keep my top navigation sticky on tablets/phones. I see in the code a class called "hidden-secondary" appears when I scroll down, but I'm not sure how to remove that class. Can you help?

  •  8,839
    Tahir replied

    Hey Again,

    Could you remove the Custom CSS in place so we can write up CSS to show it correctly?. At the moment the Header seems to take up much space on mobile. 

    Thanks 


    ThemeNectar Support Team 

  •  10
    Ellison replied

    I have a lot of css in use to get the overall header to be the way we want it to be. I really wish there were more options within the theme for the top header to be styled other than center text. I really can't remove what I've got since the site is live.

  •  10
    Ellison replied

    This is what it looks like on my phone. 

  •  8,839
    Tahir replied

    Hey Again,

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    @media only screen and (min-width: 1px) and (max-width: 999px) {
        div#header-outer.hidden-secondary {
            transform: translateY(0px) !important;
        }
        .hidden-secondary #header-secondary-outer {
            background-color: #003da5 !important;
        }
    }

    Thanks


    ThemeNectar Support Team 

  •  10
    Ellison replied

    Thank you!!!