Tagged: x
-
AuthorPosts
-
January 19, 2017 at 5:06 pm #1337444
Ivan WParticipantHi there,
We have implemented the pageable container with several tabs on a page. This works great, however, we are also using a fixed menu across the top, when we now click on a tab in the pageable container the page scrolls up too high, ending up in the middle on the tab content.
Is there any code snippet we can add to prevent this from happening please?
In the attachments you can see the menu implemented with the links. In state2.png you can see how the page scrolls and ends up too far behind the menu.
If your require access to the page, I’ll add login details in a secure post in the comments below.
PS. We don’t want to update our deployment at this stage as for some reason your update breaks our intranet (See different post) and we have to restore from backups. So a code snippet or something equivalent would be appreciated.Thanks for your reply!
January 19, 2017 at 5:08 pm #1337449
Ivan WParticipantThis reply has been marked as private.January 19, 2017 at 9:48 pm #1337767
LelyModeratorHello Ivan,
Thank you for the credentials and screenshots. Unfortunately, I can’t find which page the issue exist. Can you give us the exact page URL with pageable container tabs?
January 23, 2017 at 2:13 pm #1342048
Ivan WParticipantHi Lely,
As the previous post said it is https://sharepointgurus.net/our-work/valo/
The page is set to private, so you must be logged in to our admin area to be able to view it.January 24, 2017 at 12:06 am #1342637
LelyModeratorHello Ivan,
Please try adding the following code on Appearance > Customize > Custom > Edit Global Javascript:
jQuery( function($) { $(document).on('click', 'li.vc_tta-tab a', function( e ){ $('html, body').stop(); }); $(document).on('click', 'li', function( e ){ $('html, body').stop(); }); $(document).on('click', '.vc_tta-panel-title', function( e ){ $('html, body').stop(); }); });Hope this helps.
January 24, 2017 at 3:07 pm #1343689
Ivan WParticipantHi Lely,
That works for the first 4 tabs, from the 5th tab it starts jumping down again when you click on a tab 😮
Thanks for looking into this!
January 24, 2017 at 4:35 pm #1343810
Ivan WParticipantIt works now. Thanks for your help Lely!
January 24, 2017 at 7:35 pm #1344062
NicoModeratorHappy to hear that.
Feel free to ask us again.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1337444 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
