WordPress.org

Plugin Directory

Page scroll to id

Page scroll to id is an easy-to-use jQuery plugin that enables animated page scrolling to specific id within the document.

1.6.1

  • Added additional default selectors: .ps2id > a[href*='#'],a.ps2id[href*='#'].
  • Added "Page scroll to id target" widget.
  • Added custom buttons in WordPress visual editor for plugin's shortcodes insertion.
  • Added new option 'Enable on WordPress Menu links' in plugin settings.
  • Fixed browser's history back button when 'Scroll to location hash' option is enabled.
  • Updated readme.txt.
  • Extended help and documentation.

1.6.0

  • Fixed contextual help shortcut links in plugin settings page.
  • Added new option 'Enable for all targets' for 'Scroll to location hash'.
  • Added new option 'Delay' for 'Scroll to location hash'.
  • Fixed an issue regarding invalid selectors with location hash.
  • Updated readme.txt.
  • Updated help.

1.5.9

  • Extended ps2id shortcode for creating div elements (in addition to anchors).
  • Added ps2id_wrap shortcode for creating target wrappers in content editor.
  • Extended offset selector expressions with :position, :height() and :width().
  • Updated readme.txt.
  • Updated help.

1.5.8

  • Fixed various PHP notices in debug mode.
  • Minor script optimizations.

1.5.7

  • Added 'Highlight by next target' option. When enabled, highlight elements according to their target and next target position (useful when targets have zero dimensions).
  • Extended ps2id shortcode for creating targets in content editor.

1.5.6

  • Changed the way 'Force single highlight' option works. When enabled, it now highlights the first highlighted element instead of last.
  • Extended highlight and target classes with additional ones in order to differentiate the first and last elements. You can now use .mPS2id-highlight-first, .mPS2id-highlight-last, .mPS2id-target-first and .mPS2id-target-last in order to target the first and last highlighted links and targets in your CSS.
  • Added 'Keep highlight until next' option. When enabled, the plugin will keep the current link/target highlighted until the next one comes into view (one element always stays highlighted).
  • Added 'Disable plugin below screen-size' option. Set the screen-size (in pixels), below which the plugin will be disabled.

1.5.5

  • Fixed contextual help links in plugin settings page.
  • Updated Offset field to accept comma separated values for defining different offsets for vertical and horizontal layout (e.g. 100,50).
  • Added 'Scroll to location hash' option. When enabled, the plugin will scroll to target id (e.g. <div id="id" />) based on location hash (e.g. mysite.com/mypage#id) on page load.
  • Updated readme.txt.
  • Updated help.

1.5.4

  • Fixed a minor bug in jquery.malihu.PageScroll2id-init.js.
  • Updated screenshots.
  • Updated readme.txt.

1.5.3

  • Extended Offset option to accept element selectors in addition to fixed pixels values.
  • Added ps2id shortcode for creating links in content editor.
  • Added the ability to define link specific offsets via the html data attribute: data-ps2id-offset.
  • Fixed some minor issues for WordPress versions lower than 3.5.
  • Updated help and external links.
  • Changed plugin license from LGPL to MIT.

1.5.2

  • Minor code tweaks.

1.5.1

  • Minor code tweaks.
  • Minified scripts.

1.5.0

  • Dropped jQuery UI dependency (jQuery UI is no longer required for the plugin to work).
  • Fixed the bug of non-working links to other pages. The script now checks if href values refer to the parent document, before preventing the default behavior.
  • Fixed the bug regarding selectors referencing body class not working.
  • Any link handled by the plugin with href value #top will now scroll the page to top, if no element with id top exists.
  • Added links highlighting feature. The script adds a class (default: mPS2id-highlight) automatically on links whose target elements are considered to be within the viewport.
  • Plugin adds a class (default: mPS2id-target) automatically on targets that are considered to be within the viewport.
  • Plugin adds a class (default: mPS2id-clicked) automatically on the link that has been clicked.
  • Added offset option: Offsets scroll-to position by x amount of pixels (positive or negative).
  • The plugin script now fully validates href values and ids before scrolling the page.
  • Fixed varius minor bugs.
  • Code rewritten and optimized for better performance and maintenance.
  • For more see Plugin changelog.

1.2.0

  • Added support for jQuery version 1.9.

1.1.0

  • Removed the hard-coded plugin directory URL in order to fix errors of pointing .js files to a wrong location.

1.0.0

  • Launch!

Requires: 3.3 or higher
Compatible up to: 4.6.1
Last Updated: 3 weeks ago
Active Installs: 40,000+

Ratings

4.8 out of 5 stars

Support

10 of 24 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

0,1,0 100,1,1
100,3,3
100,1,1
100,1,1
100,1,1
100,1,1
50,2,1
100,1,1 100,3,3
100,1,1 100,2,2 100,1,1
100,1,1
100,1,1
100,5,5
100,1,1
67,3,2
100,1,1 100,1,1
100,1,1
100,1,1 100,1,1
100,1,1
100,3,3
100,3,3
100,1,1