WordPress.org

Forums

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

  1. riaanstrydom
    Member
    Posted 1 year 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 1 year ago #

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

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gwebpro Store Locator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.