• The supplied code to change the scroll offset isn’t working. It smoothly scrolls but the offset appears to be 0.

    This was added to main theme functions.php:

    
    function myplugin_get_custom_scroll_offset() {
        return 120;
    }
    add_filter( 'fast_smooth_scroll_offset', 'myplugin_get_custom_scroll_offset' );

    On the About page, the links in middle of page (Directions, Contact, Parking, etc.) will anchor like this /about/#directions

    You will need browser access to see the page:

    U: villagecntrstg
    P: 3bfe8b98

    Thanks for taking a look!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Felix Arntz

    (@flixos90)

    Thank you for the report, and first of all, apologies that it took me so long to reply, I hadn’t seen your post before.

    I reviewed your page and most likely there’s another plugin or theme active on the site that prevents the scroll offset from being applied. Specifically, I am noticing that when you click on one of the anchor links (like “Directions”), it doesn’t actually update the URL to include the anchor, which is most likely causing the problem. I’m not sure which plugin or theme on your site this comes from, but it’s unexpected behavior.

    I would recommend temporarily disabling the plugins on your site to identify the source of the issue.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.