This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Hash Link Scroll Offset


Often anchor links can be overachievers and can scroll a user past the section intended. This plugin attempts to change that by offering a setting that allows you to change the scroll offset when clicking anchors. It also adds a nice animated scrolling effect when clicking an anchor rather than the sudden jump that usually occurs. Even handles when visiting a hashed URL directly.

Use the no-scroll class on any hash links that are not meant to scroll to an area of the page (Navigation for sliders, etc).

Pluginize was launched in 2016 by WebDevStudios to promote, support, and house all of their WordPress products. Pluginize is not only creating new products for WordPress all the time, but also provides ongoing support and development for WordPress community favorites like CPTUI, CMB2, and more.


Manual Installation

  1. Upload the entire /hash-link-scroll-offset directory to the /wp-content/plugins/ directory.
  2. Activate Hash Link Scroll Offset through the ‘Plugins’ menu in WordPress.
  3. Update the “Hash Link Scroll Offset” setting on the general settings page, http://YOURSITE.COM/wp-admin/options-general.php.


July 10, 2018
Doesn't play nice with my site's back to top button. Click on an anchor link and the page scrolls to the anchor with the correct offset. BUT click back to top and the page only scrolls a little bit. Maybe by the amount of the offset, I'm not sure. But it looked to be about that distance.
June 18, 2017
I wasted hours trying a js or css solution to offeset anchors in Visual composer because the sticky menu covered t 100px. This plugin I just activated add 100px in the settings and BOOM !!! Ready Thank you guys!
October 25, 2016
With a fixed nav, it is always annoying when the anchor tag on the page moves the content so it is covered by the nav. I've found this plugin to be a great way to correct this problem. Thank you.
September 3, 2016
I searched some hours for some code, which would bring my anchor-links to the right point. I did not search for a wordpress plugin. It was pure fortune that I found 'Hash Link Scroll Offset'. Thanks for that. Works great!
Read all 11 reviews

Contributors & Developers

“Hash Link Scroll Offset” is open source software. The following people have contributed to this plugin.




  • Adjust JS to account for relative urls.
  • Add checks for evt and event.preventDefault existing.


  • Refactor JS to be more extensible, and adjust auto-scrolling (when hash exists in URL) to be more intelligent.


  • 'hash_link_scroll_offset.scroll_to' jQuery event fired befor scrolling is initated. Also introduce useful properties, scrollTo, initialScroll, and isScrolling;


  • 'hash_link_scroll_offset.complete' jQuery event fired when scrolling complete.



  • Prevent browser windows from moving/blinking on initial click of anchor link. Props @ImBigWill.


  • Automatically compensate for admin bar. Props @salcode.



  • First release