Different header on homepage and subpages?

This topic has 8 replies, 3 voices, and was last updated 9 years, 6 months ago ago by Eva Kemp

  • Avatar: Flexibilis
    Flexibilis
    Participant
    June 13, 2016 at 19:00

    Hi,

    I am trying to set up the transparent background on the homepage and I managed it, but I have a question.
    Seeing the Legenda templates if I see a version with transparent header, in the subpages I can see “normal” headers, like in the versions with no transparent header.

    How can I make it? I found no such option.
    Thank you.

    Regards,

    Fedor

    7 Answers
    Avatar: Flexibilis
    Flexibilis
    Participant
    June 13, 2016 at 19:29

    Hi,

    Other question regarding the header came up.

    On the transparent header template you have white color in the menu. In the subpages there is greyish.

    If I make my site the menu to be white on the homepage (with css doces), it will be white in the subpages, too, but on white background the white text is of course invisible.
    How can I set the menu to be white just on the homepage?

    Regards,
    Fedor

    Avatar: Robert Hall
    Robert Hall
    Participant
    June 14, 2016 at 07:43

    Hello,

    In this case you can use the following code in custom.css
    for all pages:

    .main-nav .menu > li > a{
    color:black;
    }

    for Home Page only:

    .home .main-nav .menu > li > a{
    color:white;
    }

    Regards,
    Robert Hall

    Avatar: Flexibilis
    Flexibilis
    Participant
    June 14, 2016 at 08:00

    Hi,

    Thank you. I’ll try in the afternoon.

    Regards,

    Fedor

    Avatar: Robert Hall
    Robert Hall
    Participant
    June 14, 2016 at 08:02

    Ok, looking forward to your reply.

    Regards,
    Robert Hall

    Avatar: Flexibilis
    Flexibilis
    Participant
    June 14, 2016 at 15:09

    Dear Robert,

    This code:
    .home .main-nav .menu > li > a{
    color:white;
    }

    does not work for the homepage. The text in the menu remains black.

    Regards,

    Fedor

    Avatar: Flexibilis
    Flexibilis
    Participant
    June 14, 2016 at 15:12

    Hi,

    Ok. I just solved it with this:
    .home .main-nav .menu > li > a {
    color: white !important;
    }

    Regards,

    Fedor

    Avatar: Eva
    Eva Kemp
    Participant
    June 14, 2016 at 15:24

    Hello,

    We are glad you have found the solution.

    Regards,
    Eva Kemp.

  • Viewing 8 results - 1 through 8 (of 8 total)

The issue related to '‘Different header on homepage and subpages?’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.