-
AuthorPosts
-
March 2, 2014 at 3:05 am #19309
I followed the instructions on this page:
https://theme.co/x/member/forums/topic/easier-content-band-custom-naming/but I find that the scroll for each anchor link is very abrupt and sudden. Anyway to make it smoother so when i click on any option the navbar, it smoothly scrolls the page to the page i want?
Thanks.
March 2, 2014 at 5:41 am #19340Hey Joshua,
Please go to \framework\js and edit scrollspy-mod.js. Go to line 172 or find
}, 850, 'easeInOutExpo');
Change 850 to a higher number so it’ll scroll much slower.
Do the same for scrollspy-mod.min.js
Hope that helps. 🙂
March 2, 2014 at 8:34 am #19386no dice, i changed it to some ridiculously large number (like 9999850) but yet still the same.
By the way, i just need to change it in my
wp-content/themes/x/framework/js/ scrollspy-mod.js & scrollspy-mod.min.jsand upload it and it should be fine right?
It’s still very fast for me.
March 2, 2014 at 8:34 am #19387This reply has been marked as private.March 2, 2014 at 8:44 am #19390“upload it and it should be fine right?” Yes.
March 2, 2014 at 11:12 am #19408But the speed is still very fast for me. Does it work for you? Could you show me an example site you have that this works, so i can be sure we are talking about the same thing?
I am trying to get the jump to anchors to be smooth, if you hit an option that should jump to the 5th page on the one page navigation, it should scroll down and you should see in a flash, page 1, 2, 3, 4…. until it arrives at 5. Of course, it shouldn’t be too slow, but it should be smooth.
March 2, 2014 at 11:13 am #19410This reply has been marked as private.March 2, 2014 at 1:41 pm #19468Hey.
the reason why it’s not working is because you’re using the wrong selector ids. You have to use #x-content-band-_ as selector like we explain it in our tutorial at: http://theme.co/x/member/kb/how-to-setup-one-page-navigation/
Each row gets a unique number and the first row has the ID: #x-content-band-1 the second #x-content-band-2 and so on. Hope this helps and sorry for the confusion.
March 4, 2014 at 11:31 am #20112I have tried x-content band and it still speeds really fast. I use values of 1850 instead of 850 already.
March 4, 2014 at 11:32 am #20113This reply has been marked as private.March 4, 2014 at 11:35 am #20115I checked out
Clicking on the top options, i realised that
1) None of the anchors like #x-content-band…. ever appears.
2) Scrolling is smooth.How is this done?
March 5, 2014 at 2:56 am #20312Hey Joshua,
Sorry for any confusion on this. The problem that you are encountering is the fact that you have your links placed in a dropdown menu, and links form a dropdown menu will not smooth scroll as they are supposed to for a few different developmental reasons. For the one page navigation to work properly, you must place your links in the top-level navigation. Regretfully, there is no way around this at this point other than ensuring that you have your menu setup correctly.
Thanks!
March 6, 2014 at 5:59 am #20768Check out my other links “about us”, “blog” etc. They are as you said, top level, but still doesn’t work.
Do you have an actual working example where I can actually see it work?
March 6, 2014 at 4:28 pm #20973Hey Joshua,
You appear to have not assigned your menu using the One Page Navigation option in the Page Settings meta box below the editor on the page. I know we mentioned it in a post above, but have you followed all of the steps in the article about how to setup one page navigation in the Knowledge Base?
March 12, 2014 at 1:38 pm #22718It works. I have no idea why my One Page Navigation was set to deactivated!
Thank you very much!However is there no other way to do this without the ugly x-content-band thing? It’s really unsightly to appear on the URL address bar….
-
AuthorPosts