Tagged: x
-
AuthorPosts
-
November 1, 2016 at 8:53 am #1239156
umbertofedericoParticipantHello 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
November 1, 2016 at 10:17 am #1239285
LelyModeratorHello 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.
November 1, 2016 at 10:31 am #1239298
umbertofedericoParticipantThis reply has been marked as private.November 1, 2016 at 11:48 am #1239409
JoaoModeratorHi 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
November 1, 2016 at 12:52 pm #1239481
umbertofedericoParticipantYeah – 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?
November 1, 2016 at 1:48 pm #1239586
RupokMemberHi 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!
November 1, 2016 at 2:44 pm #1239674
umbertofedericoParticipantI’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).
November 1, 2016 at 4:37 pm #1239859
JoaoModeratorHi 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
November 1, 2016 at 4:53 pm #1239865
umbertofedericoParticipantPerfect! thank you! I’m gonna try it tomorrow.
Kind regards,
UmbertoNovember 1, 2016 at 7:58 pm #1240083
NicoModeratorHappy to hear that.
Let us know how it goes
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1239156 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
