Title: Problem with Offset
Last modified: July 10, 2017

---

# Problem with Offset

 *  Resolved [IktanStudio](https://wordpress.org/support/users/iktanstudio/)
 * (@iktanstudio)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/problem-with-offset-2/)
 * Hi! thank you for this awesome plugin 🙂 I looked at other threads but I still
   can’t make offset work, would you advise? Thanks!
 * Dev site: [http://myorthoassist.roostertest3.com](http://myorthoassist.roostertest3.com)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/problem-with-offset-2/#post-9304522)
 * Hi,
 * Your theme handles your menu links and page scrolling internally (the script 
   that does this is: `...themes/bridge/js/default.min.js`). It also prevents “Page
   scroll to id” from auto-enabling smooth scrolling on the links and do its thing.
 * To fix this and let “Page scroll to id” handle scrolling with all its features(
   smooth animation, offset etc.) try the following:
 * Go to plugin settings and:
 * 1. Set “Selector(s) option value to:
 * `a[rel='m_PageScroll2id'], .menu-item a[href*=#]:not([href=#])`
 * 2. Enable/check [“Prevent other scripts from handling plugin’s links” option](http://manos.malihu.gr/page-scroll-to-id-for-wordpress/#plugin-settings-remove-other-click-events)
   under “Advanced options”.
 * Save changes and test your links. Everything should be working. If not, let me
   know 🙂
    -  This reply was modified 8 years, 11 months ago by [malihu](https://wordpress.org/support/users/malihu/).
    -  This reply was modified 8 years, 11 months ago by [malihu](https://wordpress.org/support/users/malihu/).
 *  Thread Starter [IktanStudio](https://wordpress.org/support/users/iktanstudio/)
 * (@iktanstudio)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/problem-with-offset-2/#post-9305432)
 * Thank you so much for responding so quickly! I tried the code you sent me but
   it didn’t work 🙁 I noticed that if I enter the URL directly to the browser, 
   the offset works fine:
 * [http://myorthoassist.roostertest3.com/#our-doctors](http://myorthoassist.roostertest3.com/#our-doctors)
 * It just won’t work when I click the menu, weird! Is it possible to add the offset
   from the <div> marker maybe?
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/problem-with-offset-2/#post-9305655)
 * No. The issue is that “Prevent other scripts from handling plugin’s links” option
   cannot work with your theme’s script (the scrolling and offset works by entering
   the URL directly because your theme’s script does not prevent it).
 * “Prevent other scripts from handling plugin’s links” option attempts to remove
   javascript click events from other scripts (other than the plugin’s event), but
   some scripts (like the one in your theme) apply events in way that makes it impossible
   to remove them by code.
 * This means that you have to do it manually (i.e. edit the theme’s script by hand).
 * You meed to edit:
 * `...themes/bridge/js/default.min.js`
 * which is minified btw.
 * Find the following text:
 * `$j(document).on("click",".main_menu a,`
 * and change it to:
 * `$j(document).on("click",".main_menu a:not(._mPS2id-h),`
 * Find and replace the exact text!
 * Save the file and see if works. If it doesn’t work, try changing it to:
 * `$j(document).on("click",".main_menu a:not([href*='#']),`
 * Let me know
 *  Thread Starter [IktanStudio](https://wordpress.org/support/users/iktanstudio/)
 * (@iktanstudio)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/problem-with-offset-2/#post-9306140)
 * THANK YOU!!! the first one did the trick 🙂
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/problem-with-offset-2/#post-9306190)
 * Great! Glad I helped.
 * Some themes handle page scrolling in a way that the plugin cannot overwrite their
   functions. It’s rare but your theme happens to be one of them. Nothing that can’t
   be fixed though if you know where to look and what to modify 😉
 * Thanks a lot for the review!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Problem with Offset’ is closed to new replies.

 * ![](https://ps.w.org/page-scroll-to-id/assets/icon-256x256.png?rev=1401043)
 * [Page scroll to id](https://wordpress.org/plugins/page-scroll-to-id/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-scroll-to-id/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-scroll-to-id/)
 * [Active Topics](https://wordpress.org/support/plugin/page-scroll-to-id/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-scroll-to-id/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-scroll-to-id/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [malihu](https://wordpress.org/support/users/malihu/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/problem-with-offset-2/#post-9306190)
 * Status: resolved