Okay
  Public Ticket #3052317
Secndary transparent header
Closed

Comments

  •  16
    Jen started the conversation

    I have managed to get the second header transparent, but on scroll, it doesn't take on the "dark and Light settings like the rest of the header. And this means that on scroll the secondary header seems to disappear.

    This site is currently a test site but I need to get this working before I can get this approved by the client to take up the theme and get the site properly built. Will send private link in next post

  •   Jen replied privately
  •  1,877
    Judith replied

    Hello Jen,

    Thanks for keeping in touch.

    Please check to ensure these options are enabled: Salient > Header navigation > Transparent header effect:

    7955551972.png

    From page settings:

    8236075001.png

    Thanks.

  •  16
    Jen replied

    Thanks Judith. Its the secondary header I am having issues with. I got it to be transparent but the colours don't change to suit the background colour.. ie it stays light on a light bg etc when the main header changes as it should

  •  1,877
    Judith replied

    Hi Jen,

    Please send in your admin login credentials so that we can check this out.

    Thanks.

  •   Jen replied privately
  •  16
    Jen replied

    A good example is this page which has a white header

    https://kd-sheilahealth.tempurl.host/appointments/team-viv/

  •  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):

    div#header-outer.small-nav #header-secondary-outer * {color: #000 !important;}

    Thanks


    ThemeNectar Support Team 

  •  16
    Jen replied

    Thankyou.

    That is working on scroll but not on pages that start with a white header. ie

    https://kd-sheilahealth.tempurl.host/viv_vip/

  •  16
    Jen replied

    ie on that page you can't see it until you scroll


  •  16
    Jen replied

    I have changed the default colour to grey so you can see it... but otherwise the change of colour don't happen unless you scroll


  •  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):

    div#header-outer #header-secondary-outer * {color: #000 !important;}

    Thanks


    ThemeNectar Support Team 

  •  16
    Jen replied

    Hi Tahir,


    This doesn't give me what I need. This just makes the secondary header text black all the time. where I want it to start light/white on transparent backggrou8nd and go dark or light depending on the page ( the same way the main navigation does

  •  1,877
    Judith replied

    Hi Jen,

    Please allow me to escalate this to the developer to respond further.

    Thanks.

  •  1,070
    ThemeNectar replied

    Hey Jen,

    I've just modified the CSS to allow for the secondary header text to display dark only when needed. Can you try testing again from your end to verify it's what you were looking for?

    Kind regards,

  •  16
    Jen replied

    Thankyou!  Thats brilliant.

    Its looking wAYYYYYY better.


    I do notice though for example on the home page, that when it scrolls past sections where the rest of the header presents as "light", it remains dark. (see screenshot)

    Now for the last thing.

    I would like to reset the colours for this ( ie if its dark #111f2a. and if its light #ffffff) currently the light type is grey as it wasn't showing at all on the white backgground.


    Can you tell me where you modified it and where I can set these?

  •  16
    Jen replied

    Fixed this

  •  16
    Jen replied

    example where it shows thhat the secondary header is displaying "dark" when rest of nav is displaying as light

  •  1,070
    ThemeNectar replied

    Hey Jensmile.png

    I just altered the snippet once more to take into consideration the "Header Inherit Row Color" effect you're using. The snippet is sitting in your Salient options panel > general settings > css box:

    div#header-outer:not(.transparent):not(.light-text) #header-secondary-outer * {
        color: #111f2a !important;
    }
    

    Kind regards,

  •  16
    Jen replied

    Thats perfect..

    THANKYOU!

  •  16
    Jen replied

    Theres one other TINY thing thats bugging me... the borders between the items are not connecting with the border below... on the secondary nav... like the line height is too big or something.  Can you see what I mean?

  •  1,877
    Judith replied

    Hello Jen,

    Please try this css:

    body #header-secondary-outer nav>ul>li>a {
        line-height: 15px;
    }

    Thanks.