This website uses cookies to personalise ads and to analyse traffic ok
web design

Page scroll to id

Changelog

  • May 1, 2019
    • Page scroll to id version 1.6.0 release
    • Fixed highlight not working in URLs with an apostrophe.
  • Oct 1, 2018
    • Page scroll to id version 1.5.9 release
    • Plugin now works with anchors inside SVG elements.
  • May 31, 2017
    • Page scroll to id version 1.5.8 release
    • Fixed a bug regarding links with URL in non-latin characters (e.g. Greek, Cyrillic etc.).
  • Feb 8, 2017
    • Page scroll to id version 1.5.7 release
    • Fixed a bug regarding ps2id-speed-VALUE class.
  • Jan 10, 2017
    • Page scroll to id version 1.5.6 release
    • Changed required jQuery version to 1.7.
    • Added appendHash option parameter.
    • Fixed non-highlighted links with relative-root href values.
    • Added link-specific scrollSpeed value via the ps2id-speed-VALUE class (with VALUE indicating animation duration in milliseconds).
    • Changed scrollSpeed, scrollEasing and scrollingEasing default values.
  • Aug 3, 2016
    • Page scroll to id version 1.5.5 release
    • Added support for jQuery version 3.
    • Added liveSelector option parameter.
  • Oct 7, 2014
    • Page scroll to id version 1.5.4 release
    • Minor code optimizations regarding jQuery selector property.
  • Sep 17, 2014
    • Page scroll to id version 1.5.3 release
    • Added highlightByNextTarget option parameter, which enables defining targets by their position.
    • Added the ability to define targets via the html data attribute: data-ps2id-target.
    • Enabled proper highlighting for dynamic elements.
  • May 19, 2014
    • Page scroll to id version 1.5.2 release
    • forceSingleHighlight option parameter 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: mPS2id-highlight-first mPS2id-highlight-last mPS2id-target-first mPS2id-target-last.
    • Added keepHighlightUntilNext option: Keeps element highlighted until next (one element always stays highlighted).
    • Added disablePluginBelow option: Disables plugin below [width,height] screen size.
  • Jan 15, 2014
    • Page scroll to id version 1.5.1 release
    • Extended offset option to accept element selectors (as string), js/jquery objects, arrays and functions.
    • Added the ability to define link specific offsets via the html data attribute: data-ps2id-offset.
    • Changed plugin license from LGPL to MIT.
  • Jan 3, 2014
    • Page scroll to id version 1.5.0 release
    • Dropped jQuery UI dependency (jQuery UI is no longer required for the plugin to work).
    • Added scrollTo method: Scrolls the page to a given id (defined in the function parameter) programmatically.
    • 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).
    • Added clickEvents option: Enables/disables click events for all selectors.
    • Added 2 user defined callback functions: onStart (triggers when scrolling animation begins) and onComplete (triggers when scrolling animation is completed).
    • 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.
  • Feb 9, 2013
    • Page scroll to id version 1.2.0 release
    • Added support for jQuery version 1.9.
  • Sep 3, 2012
    • Page scroll to id version 1.1.0 release
    • Removed the hard-coded plugin directory URL from WordPress plugin file, in order to fix errors of pointing .js files to a wrong location.
  • Jun 4, 2012
  • May 31, 2012
    • Page scroll to id version 1.0.0 release

Plugin home     Project on GitHub

 

Pages: 1 2 3 4


537 Comments

Post a comment

Comments pages: 1 5 6 7

  1. giuse
    Posted on May 25, 2019 at 11:30 Permalink

    Hi,

    with the plugin update I got an issue

    with version 1.6.5
    link with href like http://www.xxxxxx.com/page/#id are no longer underlined, while they were with 1.6.4
    link with href like #id are still underlined, as they were with 1.6.4

    Reply
    • malihu
      Posted on May 25, 2019 at 12:10 Permalink

      This sounds like a css issue. If you post your site url, I’ll be able to check what happens and help.

      Reply
  2. Klaus Meschir
    Posted on May 24, 2019 at 08:59 Permalink

    Hi,

    i’m test your plugin for this website, but I have a problem. When I click the link in menu once, it scrolls to the anchor but it work only at the first time. The menu-link is deactivated after clicking.
    I changed in the settings “Allow only one highlighted element at a time”, “Keep the current element highlighted until the next one comes into view” and “Highlight by next target2 on and off but this has no effect for my problem. I use the WPBakery Plugin.

    Thanks for your help.

    Reply
    • malihu
      Posted on May 24, 2019 at 13:24 Permalink

      Hello,

      The problem you have does not come from “Page scroll to id”. It comes from your theme’s internal function for scrolling the page. The 2 scripts that do this are:

      ...themes/suffice-pro/assets/js/smooth-scroll.min.js
      ...themes/suffice-pro/assets/js/suffice-custom.min.js

      Try this:

      Go to “Page scroll to id” settings and enable/check “Prevent other scripts from handling plugin’s links” option. Save changes and test your page.

      If this doesn’t work, you’ll need to see if there’s an option in your theme settings to disable page smooth scrolling for same-page links.

      Let me know

      Reply
  3. Tomas Risberg
    Posted on May 22, 2019 at 21:22 Permalink

    Hi,

    After updating to Page scroll to id version 1.6.5 it scrolls too fast, and doesn’t stop the scrolling were it should stop it.

    This page illustrates the problem:

    https://silent.se/psy/overklighet

    Click on for example [1] and you see what happens.

    Reply
    • malihu
      Posted on May 22, 2019 at 21:36 Permalink

      Hi,

      Did you installed another plugin, e.g. auto-optimize?

      Reply
      • Tomas Risberg
        Posted on May 22, 2019 at 23:19 Permalink

        Thanks for your reply. Yes, at the same time as updating Page scroll to id I updated Autoptimize, WP Rocket and WordPress.

        Reply
        • malihu
          Posted on May 23, 2019 at 02:47 Permalink

          Can you flush/clear your site cache (wp rocket)?

          Reply
          • Tomas Risberg
            Posted on May 23, 2019 at 07:46 Permalink

            I have deleted the cache of Autoptimize and flushed the cache of WP Rocket. The problem remains.

Comments pages: 1 5 6 7

Post a comment

Your e-mail is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
You can write or copy/paste code directly in your comment using the <code> tag:
<code>code here...</code>
You may also use the data-lang attribute to determine the code language like so:
<code data-lang-html>, <code data-lang-css>, <code data-lang-js> and <code data-lang-php>

css.php