Home Forums WoodMart support forum onepage anchor not working with lazy loading

onepage anchor not working with lazy loading

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #425528

    iniart.m
    Participant

    When 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.
    #425622

    Artem Temos
    Keymaster

    Hello,

    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

    #425663

    iniart.m
    Participant

    Hey, thanks, find below credentials.

    You can disable plugins by yourself, i dont have them much.

    #425669

    Artem Temos
    Keymaster

    Try 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%;
    }
    #425675

    iniart.m
    Participant

    Hello!

    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.
    #425682

    Artem Temos
    Keymaster

    As we can see, it works correctly now. Could you please send us a screenshot of the problem?

    Kind Regards

    #425691

    iniart.m
    Participant

    Yes, please see attached screenshot

    Attachments:
    You must be logged in to view attached files.
    #425751

    Artem Temos
    Keymaster

    Yes, 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.

    #425767

    iniart.m
    Participant

    ok, thanks, but what is offset in px and why it doesn’t affect nothing ?

    #425768

    Artem Temos
    Keymaster

    It 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

    #425769

    iniart.m
    Participant

    ok, thanks, but when i put there 200px nothing changed.

    #425773

    Artem Temos
    Keymaster

    We don’t see 200 anywhere on your home page now.

    #425779

    iniart.m
    Participant

    i set the last anchor for 200px and nothing changed.

    #426229

    Artem Temos
    Keymaster

    Hello,

    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

Viewing 14 posts - 1 through 14 (of 14 total)