Home › Forums › WoodMart support forum › onepage anchor not working with lazy loading
onepage anchor not working with lazy loading
- This topic has 13 replies, 2 voices, and was last updated 2 years ago by Artem Temos.
-
AuthorPosts
-
December 1, 2022 at 8:24 pm #425528
iniart.mParticipantWhen i enable lazy loading in theme settings, onepage anchor for one section doesn’t work
Please see the screenshots below.
1 screenshot is lazy loading for images only
2 where i click and where it turns.Attachments:
You must be logged in to view attached files.December 2, 2022 at 10:33 am #425622
Artem TemosKeymasterHello,
Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?
Thank you in advance
December 2, 2022 at 12:35 pm #425663
iniart.mParticipantHey, thanks, find below credentials.
You can disable plugins by yourself, i dont have them much.
December 2, 2022 at 12:56 pm #425669
Artem TemosKeymasterTry to add the following code snippet to the Custom CSS area in Theme Settings to fix this issue.
.wd-image img.wd-lazy-load { width: 100%; }
December 2, 2022 at 1:17 pm #425675
iniart.mParticipantHello!
Thank you!
Now it works but going too down under my green line, how can i configure anchor ?
And also why offset px doesn’t affect anything ?Attachments:
You must be logged in to view attached files.December 2, 2022 at 1:35 pm #425682
Artem TemosKeymasterAs we can see, it works correctly now. Could you please send us a screenshot of the problem?
Kind Regards
December 2, 2022 at 1:39 pm #425691
iniart.mParticipantYes, please see attached screenshot
Attachments:
You must be logged in to view attached files.December 2, 2022 at 4:10 pm #425751
Artem TemosKeymasterYes, it might work like this because of lazy loading but we can’t fix this. When you load the page all your images are replaced with placeholders that may have a different height than the original one. That is why the position of the section is calculated a bit differently.
December 2, 2022 at 4:48 pm #425767
iniart.mParticipantok, thanks, but what is offset in px and why it doesn’t affect nothing ?
December 2, 2022 at 4:50 pm #425768
Artem TemosKeymasterIt is the distance between the top of the window and your anchor element. As we can see, it works correctly now https://gyazo.com/0784f1b081521951c23c3510e02bd4d6
Kind Regards
December 2, 2022 at 4:54 pm #425769
iniart.mParticipantok, thanks, but when i put there 200px nothing changed.
December 2, 2022 at 4:59 pm #425773
Artem TemosKeymasterWe don’t see 200 anywhere on your home page now.
December 2, 2022 at 5:19 pm #425779
iniart.mParticipanti set the last anchor for 200px and nothing changed.
December 5, 2022 at 10:57 am #426229
Artem TemosKeymasterHello,
Sorry, but that option works only when you scroll the page to highlight the menu item. If you want to increase the menu scroll point offset, you can do this globally only by adding the following code snippet to the functions.php file in your child theme
add_filter( 'woodmart_one_page_menu_offset', function () { return 200; });
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register