Tagged: x
-
AuthorPosts
-
May 11, 2016 at 5:50 pm #986694
karaokeloveParticipantHi, I’m having an issue with one-page navigation (url: https://streamauthority.com/guides/open-broadcaster-software/). When I click a link to navigate to an area of the same page, it doesn’t just go there; instead, it scrolls to that location. This is a cool effect, but unfortunately it doesn’t play nice with Lazy Load, and I’d rather have a fast and efficient page than a cool transition. So is there a way to have my one-page-navigation links go straight to the linked id, rather than scrolling there?
I was actually able to achieve the desired effect accidentally due to a JS error when I had conflicting plug-ins, so I assume there’s got to be a way to manually do it. Thanks!
May 11, 2016 at 11:03 pm #987109
Rue NelModeratorHello There,
Thanks for writing in! One checking the page, it doesn’t have one page navigation applied. The click to navigation links and all the contents is on the same page. This is the reason why the page just scrolls to the content block within the page. What sort of effect you want on the page? Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.
Thank you.
May 12, 2016 at 9:35 am #987858
karaokeloveParticipantSure, so if you go to my url at https://streamauthority.com/guides/open-broadcaster-software/ you’ll see I have a Table of Contents. I’d like the user to be able to click an item in the Table of Contents to navigate directly to that item. It currently works (using IDs), except that since it scrolls there, if I activate Lazy Load, the images load in such a way that it throws off the scrolling effect, causing it to stop before actually reaching its destination.
May 12, 2016 at 4:36 pm #988559
RadModeratorHi there,
Sure, please add this code to Admin > Appearance > Customizer > Custom > Cusom > Global Javascript.
jQuery ( function($) { $(document).ready ( function() { setTimeout ( function(){ $('.no-scrolling, .no-scrolling a').off('click touchstart touchend'); }, 100 ); } ); } );Then simply add no-scrolling to your link class name, or your element’s class input (eg. text class input)
This is required since your table links has no specific class.
Hope this helps.
May 14, 2016 at 8:29 pm #991765
karaokeloveParticipantThat’s great, thanks!
May 15, 2016 at 1:52 am #991922
Rue NelModeratorYou are most welcome!
June 10, 2016 at 10:11 am #1035986
karaokeloveParticipantIs there a way to universally disable the scrolling effect so that I don’t have to edit every single element that uses it?
June 10, 2016 at 6:05 pm #1036555
RadModeratorHi there,
There is, but that will also disable all links that supposed to have the scrolling effect, like one page’s scrolling.
jQuery ( function($) { $(document).ready ( function() { setTimeout ( function(){ $('a').off('click touchstart touchend'); }, 100 ); } ); } );Thanks!
June 10, 2016 at 7:03 pm #1036598
karaokeloveParticipantThat’s perfect, thanks! Now the only problem is that I’m using Uber Menu, and the scroll/link isn’t taking it into account, leading to the Uber Menu covering up part of the page that is linked to (i.e. it’s scrolling/linking too far since it doesn’t take the Uber Menu into account). Is there a way to fix this?
June 11, 2016 at 1:26 am #1036987
Rue NelModeratorHello There,
Thanks for the updates! Regarding the other issue, please go to your customizer, Appearance > Customize > Header > Navbar and set the “Navbar Top Height (px)” to at least 50 pixels. Right now it is just at 30 pixels this is why a few pixels is covering your heading when you load the section on the page.
Hope this make sense. Please let us know how it goes.
June 15, 2016 at 7:17 am #1043084
karaokeloveParticipantHmm, that’s not fixing it. I’ve now disabled Ubermenu but the problem is still happening. It was inconsistent before, then it was 100% with Ubermenu, and now it’s 100% without Ubermenu.
June 15, 2016 at 10:38 am #1043446
JoaoModeratorHi There,
Are you still facing this issue? If yes, on which device? I have tested and it is scrolling perfectly above the purple boxes.
Let us know more details,
Thanks
Joao
June 17, 2016 at 9:14 am #1047061
karaokeloveParticipantI’m still having the issue on dekstop. https://streamauthority.com/guides/open-broadcaster-software/
It’s scrolling down so that the menu is lining up with the bottom of the purple headers, rather than the top. I thought maybe it was caused by the WordPress Admin Bar, but I’ve tested it without the bar and it still happens.
June 17, 2016 at 12:40 pm #1047299
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 / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks
Joao
June 19, 2016 at 11:45 am #1049370
karaokeloveParticipantThis reply has been marked as private. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-986694 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
