WordPress.org

Ready to get started?Download WordPress

Forums

Gwebpro Store Locator
[resolved] Scrolling options? (2 posts)

  1. riaanstrydom
    Member
    Posted 3 months ago #

    jQuery('html, body').animate({scrollTop: jQuery('.home_map').offset().top-50}, 2100);

    That is the code for scrolling, but I would like to edit it so that it scrolls to just above the location title and search button? Any ideas if this is possible?

    I tried changing the top offset, but having 2 different size screens I can already see that different size screens scroll to different points..

    Any ideas would be appreciated, thanks!

    https://wordpress.org/plugins/gwebpro-store-locator/

  2. riaanstrydom
    Member
    Posted 3 months ago #

    jQuery('html, body').animate({scrollTop: jQuery('.location').offset().top-01}, 2100);

    Don't you just love it when you answer yourself?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.