Tagged: x
-
AuthorPosts
-
May 22, 2016 at 3:40 pm #1004130
limetteParticipantWe created a one-pager with anchor links for each Section. When I click on a menu item on smaller screens (i.e. in the mobile menu), the anchor positions seems to be before that actual section starts. In other words: The scrolling starts as intended but stops slightly above the section. On larger screens (i.e. with fixed header menu) everything is fine. Can you help?
May 22, 2016 at 9:32 pm #1004476
LelyModeratorHello There,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. 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.
May 23, 2016 at 10:20 am #1005347
limetteParticipantThis reply has been marked as private.May 23, 2016 at 10:53 am #1005430
RupokMemberHi Christian,
Thanks for the URL. It seems you have added the IDs to image or elements inside the section. You should add the ID to the section itself not inside any element.
Kindly add the IDs to sections to get expected result.
Cheers!
May 23, 2016 at 11:29 am #1005496
limetteParticipantHi Rupok – Many thanks for the input. We now removed the IDs from their existing locations and added them to the sections themselves. However, the issue seems to persist on devices with mobile menu showing. Can you help? Cheers, c
May 23, 2016 at 11:56 am #1005548
RupokMemberHi there,
Thanks for updating. As your mobile menu is not fixed but it’s still taking the offset so it’s happening. You can either make the mobile menu sticky (follow #688851) or follow this solution – https://community.theme.co/forums/topic/mobile-single-page-nav-scrolltop-value/#post-149877
Hope this helps.
Cheers!
May 23, 2016 at 12:43 pm #1005658
limetteParticipantHi Rupok
Many thanks! Helpful indeed. I added the Javascript and it is now working nicely. Is it better to add the script at global level or on the respective page?
Kind regards and thanks for the help!
May 23, 2016 at 12:58 pm #1005680
RupokMemberHi there,
If you use this for a single page then would be better if you add on page level as it will be unnecessary if there is no One Page Navigation on other pages.
Cheers!
May 23, 2016 at 1:18 pm #1005714
limetteParticipantOk, many thanks for the help!
May 23, 2016 at 1:24 pm #1005728
RupokMemberYou are welcome!
Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Thanks for using X.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1004130 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
