Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1239156
    umbertofederico
    Participant

    Hello there!

    I’m currently working on a project, where on the homepage I have to have the header to be transparent as a slider goes underneath it. For the rest of the pages I want the header to be white. Is there a way to do that?

    Thanks for your help!

    Umberto

    #1239285
    Lely
    Moderator

    Hello Umberto,

    That can be achieve using some custom CSS. To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #1239298
    umbertofederico
    Participant
    This reply has been marked as private.
    #1239409
    Joao
    Moderator

    Hi Umberto,

    Please change your code :

    .x-navbar {
    background-color: rgba(0,0,0,0.6) !important;
    }

    to :

    .home .x-navbar {
        background-color: rgba(0,0,0,0.6) !important;
    }
    .x-navbar {
        background-color: white !important;
    }

    Hope that helps

    Joao

    #1239481
    umbertofederico
    Participant

    Yeah – that did the trick! Thank you very much!

    Is there also a way to have a specific logo (e.g. white) for the homepage and have a different color for all other pages?

    #1239586
    Rupok
    Member

    Hi there,

    Thanks for writing back. Are you referring the logo text as I can’t see any logo? I can see you already made it white for the homepage with some CSS. Would you clarify if you still need help on this?

    Cheers!

    #1239674
    umbertofederico
    Participant

    I’m talking about an actual logo – an image. The text is just a placeholder right now since I’m waiting for the logo to be designed. Once it arrives, I need two different colors (a dark gray logo wouldn’t work on the homepage).

    #1239859
    Joao
    Moderator

    Hi There,

    On Appereance > Customizer > Header set the logo you want to use on all pages.

    Than go to Appereance > Customizer > Custom > Javascript and add :

    
    jQuery(".home .x-brand img").attr("src","http://yourweb.com/wp-content/uploads/2015/11/logo.png");

    Set the URL to the logo you want to use on your home page.

    Hope that helps

    Joao

    #1239865
    umbertofederico
    Participant

    Perfect! thank you! I’m gonna try it tomorrow.

    Kind regards,
    Umberto

    #1240083
    Nico
    Moderator

    Happy to hear that.

    Let us know how it goes

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1239156 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>