-
AuthorPosts
-
October 7, 2014 at 3:33 am #120400
Hi,
I would like to have a static topbar so that when the user scrolls down the page the topbar remains visible at all times. I would also like the navbar to be visible but only when the user scrolls to the top of the page, i would like this to be directly under the top bar when at the top of the page.
I have tried to implement the following from your forum posts but there is a problem with the width of the topbar and the menu also disappears. The code i tried was
.x-container-fluid.offset {
margin:60px auto 40px;
}.x-topbar {
position:fixed;
width:100%;
}any help would be appreciated as this is the last thing i am doing before it goes live,
look forward to your response
October 7, 2014 at 7:51 am #120546Hi,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL as stated on the forum entrance page. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
October 8, 2014 at 5:39 am #121216sorry, i always forget to add this
its http://www.insolvencyprofessionals.com/test
I have removed any attempts to fix the top menu
I look forward to you help
Cheers
October 8, 2014 at 1:58 pm #121552Hi there,
Please refer to this post: http://theme.co/x/member/forums/topic/make-topbar-fixed-with-navbar/#post-94848
Hope this helps. 🙂
Thank you.
October 10, 2014 at 7:51 am #122970Hi thanks for the reply
i have implemented the above but i now have the following issues
1. the slider below the masthead is not correctly visible, its half hidden beheind the navbar
2. how can i make the menu disappear as the user starts to scroll downOctober 10, 2014 at 4:27 pm #123264This reply has been marked as private.October 13, 2014 at 7:30 am #124171http://wwwtheinsolvencyprofessionals.com/test/
see above correct link
sorry again i wrote it in a hurry
October 13, 2014 at 7:31 am #124172October 13, 2014 at 10:19 am #124324Hey There,
Go to Customizer > Custom > CSS and add following:
.x-navbar-fixed-top, .x-navbar-fixed-left, .x-navbar-fixed-right { position: relative !important; width: 100% !important; } .x-slider-revolution-container { margin-top: 100px; }
I would recommend targeting the .x-slider-revolution-container more specific once you know where you want to put the slide if its the home page it would look like this:
.home .x-slider-revolution-container { margin-top: 100px; }
October 14, 2014 at 3:18 am #124730This reply has been marked as private.October 14, 2014 at 9:21 am #124956Yes go ahead and give us access so we can look into this better.
To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
October 14, 2014 at 10:51 am #125042This reply has been marked as private.October 14, 2014 at 3:11 pm #125243Hi There,
Thanks for providing additional information,
Can you please try adding this code below in Customizer > Custom > Javascript
(function($){ $(window).scroll(function(){ if ($(this).scrollTop() > 0) { $('.x-topbar').css({'position':'fixed'}); } else { $('.x-topbar').css({'position':'relative'}); } }); })(jQuery)
Then this one below in Customizer > Cutom > CSS
.x-topbar { max-width: 1200px; width: 100%; }
Let us know how it works,
CheersApril 27, 2016 at 12:02 pm #902597This Code worked for me, but now when i scroll my header goes under the topbar slightly. is there a way to fix this?
April 27, 2016 at 12:03 pm #902602This reply has been marked as private. -
AuthorPosts