Tagged: x
-
AuthorPosts
-
June 20, 2016 at 8:47 pm #1051804
sebagcParticipantHi Team!
Ive found plenty of forum posts related, but i think there is none perfect for my needs.
I would love to have a transparent Header(logo and nav bar) for the home page(or a certain page) and a simple white header(logo an nav bar) for the rest.
Also, for the transparent header pages, i would like to have a white(maybe with some % of opacity) menu background when scrolling down.
Is it possible?
The website is http://www.Sudgower.comThank you very much in advance!
Best regards!
SebastianJune 21, 2016 at 1:12 am #1052013
Paul RModeratorHi Sebastian,
Thanks for writing in!
You can add this under Custom > Edit Global CSS in the Customizer.
.home .x-navbar { background-color:transparent; } .home .masthead { position:absolute; width:100%; } .home .x-navbar.x-navbar-fixed-top { background-color:rgba(255,255,255,0.5); }Hope that helps
June 21, 2016 at 2:41 pm #1053092
sebagcParticipantHi! thank you very much!
It worked partially. The menu background is transparent but when scrolling down it still is transparent.
Also, Is there a way to make this exclusive for the home page? (or a specific page, to apply it also to one more page)Thank you!!
Best regards!June 21, 2016 at 3:13 pm #1053156
JoaoModeratorHi There,
Please use the following code instead
On Appereance Customizer Custom > CSS
.x-navbar-wrap { height: auto !important; } .x-navbar { background-color:transparent; border:0; box-shadow:none; position: fixed; width:100%; } .x-navbar-solid { background-color: rgba(255,255,255,0.7); }On Appereance Customizer Custom JavaScript
jQuery(function($) { $(window).scroll(function(){ if($(window).scrollTop() >50) { $('.home .x-navbar').addClass("x-navbar-solid"); }else { $('.home .x-navbar').removeClass("x-navbar-solid"); } }); });Hope that helps,
Joao
August 21, 2016 at 10:34 pm #1140933
sebagcParticipantHi Joao!
Im sorry for the delay in the follow up.
This didn’t work either.Please let me know what else can we do!
Thank you very much!Best Regards!!
SebastianPS: Is it possible to also show a different logo image when scrolling down?
Thanks!!!!August 21, 2016 at 11:31 pm #1140974
RupokMemberHi there,
The code seems fine and should work. It’s not working because you have another code that’s interfering. Kindly update this code :
.x-navbar-solid { background-color: rgba(255,255,255,0.7); }to
.x-navbar-solid { background-color: rgba(255,255,255,0.7)!important; }Hope this helps.
August 21, 2016 at 11:56 pm #1140984
sebagcParticipantThank you very much!!! It worked!!! you’re awesome!!
August 22, 2016 at 12:04 am #1140993
Paul RModeratorYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1051804 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
