Tagged: x
-
AuthorPosts
-
September 28, 2016 at 2:24 pm #1194464
UniteCoopParticipantHi, trying to figure how to make the nav bar do what’s happening on this site: http://vpenergy.ca/
I have a background image set in the nav bar, but it just stays static when you scroll.
Current working site: http://www.fitpark.caSeptember 28, 2016 at 4:31 pm #1194674
Nabeel AModeratorHi there,
Thanks for writing in! Please add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
.x-navbar { position: relative !important; background-attachment: fixed !important; }Let us know how this goes!
September 29, 2016 at 2:01 pm #1196178
UniteCoopParticipantThanks!! is there a way to keep the menu +logo fixed and just have the background image scroll up? With the code you gave me, everything scrolls up.
September 29, 2016 at 5:16 pm #1196416
Nabeel AModeratorHi again,
Please add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
.x-navbar-fixed-top .x-container.max { position: fixed !important; left: 13% !important; } .x-navbar-fixed-top .x-nav-wrap.desktop { position: fixed !important; display: block !important; width: 100% !important; right: 13% !important; }Let us know how this goes!
September 29, 2016 at 6:12 pm #1196468
UniteCoopParticipantBeautiful! Thank you muchly! One last thing regarding this.. is there code to put a white background behind the the fixed menu+logo when you scroll passed the background image ?
September 29, 2016 at 11:16 pm #1196859
Rue NelModeratorHello There,
To resolve your issue, please do the following:
1] Please add the following JS code in the customizer, Appearance > Customize > Custom > JavascriptjQuery(function($) { var $body = $('body'); var $navbar = $('.x-navbar'); if ( $body.hasClass('x-navbar-fixed-top-active') && $navbar.length > 0 ) { var boxedClasses = ''; if ( $body.hasClass('x-boxed-layout-active') ) { boxedClasses = ' x-container max width'; } $(window).scroll(function() { if ( $(this).scrollTop() >= 500 ) { $navbar.addClass('x-navbar-solid' + boxedClasses); } else { $navbar.removeClass('x-navbar-solid' + boxedClasses); } }); } });And then please add the following css code in the customizer, Appearance > Customize > Custom > CSS
.x-navbar-solid .x-container.max.width { background-color: #fff !important; }We would loved to know if this has work for you. Thank you.
September 30, 2016 at 1:10 pm #1197616
UniteCoopParticipantNot seeming to work 🙁 just put the code in and no change
September 30, 2016 at 2:44 pm #1197748
JoaoModeratorHi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
October 1, 2016 at 1:39 pm #1198667
UniteCoopParticipantThis reply has been marked as private.October 1, 2016 at 1:47 pm #1198673
UniteCoopParticipantThis reply has been marked as private.October 1, 2016 at 9:51 pm #1198982
Rue NelModeratorHello There,
Thank you for getting back to us. The code did not work out because you did not inserted the exact code and it generated a JS error (http://prntscr.com/corknj).

I went ahead and edited the code for you to check out the result of this code.
Hope this works out for you.
October 3, 2016 at 12:05 pm #1200699
UniteCoopParticipantThank thank thank you!! do you know what modification i can make so the white bar goes the full length of the screen and not jus the width of the logo and menu items?
October 3, 2016 at 12:41 pm #1200739
ThaiModeratorHi There,
Please find this CSS:
.x-navbar-solid .x-container.max.width { background-color: #fff !important; }And change to this:
.x-navbar-solid .x-container.max.width { background-color: #fff !important; width: 100%; max-width: 100%; left: 0 !important; padding-left: 13%; }Hope it helps 🙂
October 4, 2016 at 3:39 pm #1202522
UniteCoopParticipantBoom! It worked.. thank you kindly.. the thing is now the logo keeps pushing in from the left and covering up the menu??
October 4, 2016 at 9:51 pm #1202902
FriechModeratorHi There,
I don’t see the logo covering the menu, would you mind providing us some screenshots?
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1194464 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
