Tagged: x
-
AuthorPosts
-
December 30, 2016 at 3:50 pm #1310309
arswitzerParticipantI love ethos 3. When scrolling down the page and the navbar locks to the top. How would it be possible to keep the logo that is stacked above the navbar visible at all times just like the navbar? Thanks in advance!
December 30, 2016 at 3:58 pm #1310315
JoaoModeratorHi There,
Please add the following code to Appereance > Customizer > Custom > CSS
.x-logobar { position: fixed; width: 100%; } .x-navbar { position: fixed !important; top: 136px !important; width: 100%; }If you need further adjustments please provide your URL.
Thanks,
Joao
December 30, 2016 at 4:24 pm #1310345
arswitzerParticipantThanks, but that isn’t quite doing what I needed. Please reference the 2 images shown. The site in reference is test.moverightkc.com
December 30, 2016 at 4:26 pm #1310347
arswitzerParticipantHere are the reference images to see what I would like to be done.
December 30, 2016 at 10:51 pm #1310687
Rue NelModeratorHello There,
Thanks for providing the screenshots. As you are using stacked layout, it would be a bit tricky. Let’s me try to help you to achieve this.
You can add this under Custom > JavaScript in the Customizer.
jQuery( function($) { $(window).on("scroll", function () { if($('.x-navbar').hasClass('x-navbar-fixed-top')) { $('.x-logobar').addClass('x-logobar-fixed-top'); }else { $('.x-logobar').removeClass('x-logobar-fixed-top'); } }).scroll(); });Then add this under Custom > CSS in the Customizer.
.x-navbar.x-navbar-fixed-top { background-color: #fff !important; padding-bottom: 10px; top: 0; } .x-logobar.x-logobar-fixed-top { background-color: #fff !important; z-index: 9999; } .x-brand img { transition: all 0.2s ease 0s; }We would loved to know if this has work for you. Thank you.
January 1, 2017 at 9:29 pm #1312087
arswitzerParticipantThis reply has been marked as private.January 2, 2017 at 12:25 am #1312195
Paul RModeratorHi,
Thank you for providing your admin login.
I went ahead and added the code provided above then made some adjustment to css to make it work.
.x-navbar.x-navbar-fixed-top { background-color: #fff !important; padding-bottom: 10px; top: 102px; } .x-logobar.x-logobar-fixed-top { position:fixed; width:100%; top:0; background-color: #fff !important; z-index: 9999; } .x-brand img { transition: all 0.2s ease 0s; }Kindly check on your end.
Thanks
January 2, 2017 at 1:00 am #1312230
arswitzerParticipantLooks great! Thanks for all of the help!
January 2, 2017 at 1:04 am #1312237
Paul RModeratorYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1310309 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
