-
AuthorPosts
-
June 3, 2015 at 2:04 pm #291424
Tristan AParticipantThanks!
June 3, 2015 at 3:05 pm #291519
AlexanderKeymasterYou’re welcome!
June 17, 2015 at 3:55 pm #305269
Jay BParticipantThis feature is awesome and seems like it will come in handy! I’m going to use it on this site rgabucks.co.uk
Is there any way that the font can be a different color before scrolling down too? Then change to the normal desired colors after scrolling?
Be good if the logo could do this too (be a different color while in transparent mode until scrolling) like the link that was initially posted, but I understand if this isn’t possible.Cheers
JayJune 17, 2015 at 11:14 pm #305631
FriechModeratorHi Jay,
It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.
Thanks for understanding. Cheers!
December 8, 2015 at 10:44 am #697588
C-suiteSBParticipantI’m sorry but for some reason I wasn’t able to get the same result when I added the code provided above to get the desired result on this site. http://razorfrog.com/
Can you point out what I’m doing wrong? I tried to change the transparency but it is still opaque regardless of what number I add in.
Please help?
December 8, 2015 at 11:21 am #697639
C-suiteSBParticipantThis reply has been marked as private.December 8, 2015 at 5:40 pm #698111
Nabeel AModeratorHi there,
Thanks for writing in!
You can try adding the following jQuery script in your Customizer via Appearance > Customize > Custom > Javascript
jQuery(document).ready(function($){ $(window).scroll(function(){ if ($(this).scrollTop() > 0) { $('.x-navbar, .x-navbar .sub-menu').removeClass('x-navbar-solid trans').addClass("white"); } else { $('.x-navbar, .x-navbar .sub-menu').removeClass("white").addClass("trans"); } }); });Then add the following CSS in your Customizer via Appearance > Customize > Custom > CSS:
.trans { background: rgba(255,255,255,0.5) !important; } .white { background: #fff !important; }Let us know how this goes!
December 9, 2015 at 4:05 pm #699897
C-suiteSBParticipantHey, that didn’t work. Did you get a chance to login and see for yourself. I’ve already used this code and have the same results. Can you tell me what I’m doing wrong? I still can’t get this to work like the reference website I listed.
The code works for changing the background color and font size but doesn’t affect the transparency. Onscroll its opaque not see-through.
Thx.
Jason
December 9, 2015 at 8:05 pm #700235
Rue NelModeratorHello Jason,
Even without the code we gave you, the navbar will suppose to change from transparent to a solid color because you have this code:
.x-navbar { background-color: rgba(255,255,255,.55); /*Adjust .5 to the level of transparency you preferred*/ } .x-navbar-solid { background-color: #2c3e50f !important; }However, your solid background color is not a valid hex code. Please update your code and use this instead:
.x-navbar { background-color: #fff !important; background-color: rgba(255,255,255,0.55) !important; /*Adjust .5 to the level of transparency you preferred*/ } .x-navbar.x-navbar-fixed-top.x-navbar-solid { background-color: #2c3e50 !important; background-color: rgba(44, 62, 80, 1) !important; }Hope this helps. Please let us know how it goes.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-145861 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
