-
AuthorPosts
-
March 10, 2016 at 6:17 pm #832800
mondobongomosesParticipantHello, I was able to set the Nav bar to transparent, but I would love have it change to black with white text when I start scrolling down. How would I go about doing that?
http://dev-iconicontent.pantheon.io
Thanks in advance for your help! Your awesome support is a major reason why I keep building sites for my clients in X.
March 10, 2016 at 10:35 pm #833076
RupokMemberHi there,
Thanks for writing in That’s already discussed on several threads. You can follow this – https://community.theme.co/forums/topic/navbar-color-change-on-scroll/#post-274570 or will find lot of similar threads. So I’d suggest you to search on forum firs to find the answer. If you can’t find, we’re always here to assist you.
Cheers!
April 8, 2016 at 8:44 pm #873573
mondobongomosesParticipantHello, thank you for that link! I read that one, and these others:
– https://community.theme.co/forums/topic/transparent-nav-transition-one-page-nav/
– https://community.theme.co/forums/topic/transparent-headernavbar-only-when-on-top-of-page/
– https://community.theme.co/forums/topic/how-to-make-background-of-nav-bar-see-through-then-solid-upon-scroll-down/and I feel like I am SO close! I am able to get the bar to change to black, but I would like to have the links in the nav turn white.
I also would like to turn the nav on (http://dev-iconicontent.pantheonsite.io/contact-connect/) turn to black with the white logo/link text.
If there is another thread that shows how to do this, would you please link it? My search has not been fruitful :(.
If no threads for that exist, can you help? I’ll link my login credentials below so you can see my code.
Thanks!
April 8, 2016 at 8:44 pm #873575
mondobongomosesParticipantThis reply has been marked as private.April 9, 2016 at 6:38 am #874018
ThaiModeratorHi There,
Please remove your custom JS & CSS, then add the following CSS under Customizer > Custom > CSS:
.x-nav-black { background-color: #000 !important; } .x-navbar.x-nav-black .desktop .x-nav > li > a, .x-navbar.x-nav-black .x-brand { color: #fff; }And add the following JS under Customizer > Custom > Javascript:
jQuery(document).ready(function($){ $('.x-navbar').css("background-color", "transparent"); var rev_height = $(".x-slider-container").height(); $(window).scroll(function(){ if ($(this).scrollTop() > rev_height) { $('.x-navbar').addClass('x-nav-black'); } else { $('.x-navbar').removeClass('x-nav-black'); } }); });Hope it helps 🙂
April 11, 2016 at 12:44 am #875940
mondobongomosesParticipantHi Thai! That was very helpful! Thank you! Although it has brought up a few more hopefully small issues you can help me with.
http://dev-iconicontent.pantheonsite.io/blog/
– On this blog page – the nav doesn’t stick at the top like on the other pages. How do I fix that?http://dev-iconicontent.pantheonsite.io/contact-connect/
– on this contact-connect page, when on mobile, as soon as I scroll, the expanded mobile nav turns black, unlike the other pages. how do I fix that? I would like it to stay white, like the other pages on mobile.Thanks again for your great support!
April 11, 2016 at 6:57 am #876307
ChristopherModeratorHi there,
#1 Please update theme and cornerstone, as this may fix the issue.
#2 Please find this code :
.x-nav-black { background-color: #000 !important; }And update it to :
@media (min-width:979px){ .x-nav-black { background-color: #000 !important; } }Hope it helps.
April 11, 2016 at 4:14 pm #877179
mondobongomosesParticipantChris, you seriously rule! Thank you!
April 11, 2016 at 6:47 pm #877339
mondobongomosesParticipantSorry to complicate things… I realize I may not actually need a slider, and have set the image as a background.
Is there a way to bump the image up to make it appear behind the clear nav, and have the nav turn black like it currently does upon scrolling down? I hope that makes sense!
April 12, 2016 at 2:35 am #877801
ChristopherModeratorHi there,
Glad we could help you.
Please add this :@media (min-width:979px){ .home #x-section-1 { margin-top: -100px !important; } }Hope it helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-832800 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
