Tagged: x
-
AuthorPosts
-
January 29, 2017 at 10:19 am #1349651
Happy CowParticipantBuilding the site here: https://celebration-church.ucgsynk2-liquidwebsites.com/
I want the navbar to scroll up off the page when I scroll down. I’ve tried both static and fixed settings in the customizer. Not sure which setting is supposed to do that. Neither is working. It’s perfect as is, just need it to leave the page when I scroll. Just like this: http://elevationchurch.org/
Here is the custom css I’m using:
.x-navbar {
position: fixed !important;
width: 100%;
background: transparent;
border-bottom: 0;
box-shadow:none;
}.x-slider-container.below {
margin-top: -75px;
}What am I missing?
Thanks!
ShaunJanuary 29, 2017 at 11:00 am #1349694
Happy CowParticipanti think i just got it.
i changed position to absolute.
so now i have:
.x-navbar {
position: fixed !important;
width: 100%;
background: transparent;
border-bottom: 0;
box-shadow:none;
}.x-slider-container.below {
margin-top: -75px;
}Is this good? Do I need all that? It’s working as is, but would like to delete custom css that is not needed.
Thanks!
ShaunJanuary 29, 2017 at 11:52 am #1349745
RupokMemberHi Shaun,
If you use “Static Top” then it works same as the absolute positioning so you don’t need to add custom CSS. For sticky Navbar, you should set “Fixed Top”. However you need more content on your page to see the effect as it doesn’t have enough content to scroll.
Cheers!
January 30, 2017 at 8:30 am #1350775
Happy CowParticipanti set it to static in customizer, but it did not work. cleared cache as well. that’s why i went the custom css route. no matter what i did, it was always fixed. even when i changed it to static in the custom css. the only way i got it to work was to set it to absolute.
it’s working now as is. i’ll just roll with it.
thanks!
shaunJanuary 30, 2017 at 9:15 am #1350862
RupokMemberHi Shaun,
Thanks for updating. If you see it’s sticky even after setting as “Static Top” then some of your CSS causing this. However if you are all set right now, you can leave it.
Cheers!
January 30, 2017 at 9:41 am #1350900
Happy CowParticipantthe only css i’m using is what i posted above. from what i posted, what is causing it?
January 30, 2017 at 10:54 am #1351020
RupokMemberHi there,
Obviously that was causing as it have
position: fixed !important;and looks like you intentionally did it to make it fixed. You are not supposed to set any positioning with CSS.Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1349651 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
