Home / Forums / WoodMart support forum / Navigation anchor bug
Home › Forums › WoodMart support forum › Navigation anchor bug
Navigation anchor bug
- This topic has 9 replies, 2 voices, and was last updated 7 months, 2 weeks ago by
Artem Temos.
-
AuthorPosts
-
November 18, 2025 at 9:34 pm #696620
vynilParticipantHi! A while ago I reported an issue with the navigation anchors offset here: https://xtemos.com/forums/topic/woodmart-sticky-header-causes-a-bug-it-covers-the-heading-in-the-page/, it was fixed with a patch.
While all is working well on desktop, I notice it doesn’t work at all on mobile. Can you please check? Link to a page with anchors attached in the private area. Thank you very much in advance!November 19, 2025 at 4:38 pm #696773Hello,
You need to enable the following option for mobile https://monosnap.ai/file/7bw5BNhfDfoEriIFmWOq0PVTJDNRdC
Kind Regards
November 19, 2025 at 9:06 pm #696806
vynilParticipantHello, I am afraid this didn’t work. Can you please check? Attached is temporary access.
November 20, 2025 at 11:04 am #696883As we can see, it works correctly on your website at the moment. Please check the video https://monosnap.ai/file/fsi1Ero1I4bp3LqRcCpgSA2D8ylgqO
November 20, 2025 at 1:49 pm #696938
vynilParticipantHello, I am afraid you’re missing the point. Yes, the scroll to anchor actually works, but there is so much unnecessary space. Can you please check how it works on desktop? The anchor is right above the heading. On mobile it’s as if part of the previous paragraph. I am attaching two screenshots for better understanding.
Attachments:
You must be logged in to view attached files.November 20, 2025 at 3:39 pm #696967This happens because there is a 100px offset set for desktop, and the same offset is applied on mobile. That’s why it appears like that on smaller screens.
November 20, 2025 at 4:06 pm #696977
vynilParticipantYes, I know. Your default value for this widget (which is your theme’s) is even 150px. You haven’t provided the ability to add different values for desktop and mobile. I think this is very important. What can be done about this?
November 21, 2025 at 10:46 am #697049To fix this issue, try to add the following code snippet to the Custom JS on the document ready area in Theme Settings to change this
(function($) { if ($(window).width() <= 768) { $('.wd-menu-anchor').data('offset', '10'); } })(jQuery);November 21, 2025 at 2:46 pm #697100
vynilParticipantWonderful, I really appreciate it! This worked perfectly. Are you also able to advise a value for tablet as well?
November 21, 2025 at 4:03 pm #697135Try to replace the code with the following one
(function($) { var w = $(window).width(); if (w <= 768) { $('.wd-menu-anchor').data('offset', '10'); } else if (w <= 1024) { $('.wd-menu-anchor').data('offset', '30'); } })(jQuery); -
AuthorPosts
- You must be logged in to create new topics. Login / Register