WP Accessibility
ScrollTo not being included (4 posts)

  1. Peter Massey-Plantinga
    Posted 2 years ago #

    We're getting this javascript error when we enable the toolbar:

    [13:16:37.520] TypeError: $(...).ScrollTo is not a function @ http://localhost/wp-content/plugins/wp-accessibility/toolbar/js/a11y.js?ver=1.0:120

    I'm thinking this is probably a case error... Do you mean scrollTo rather than ScrollTo? Changing this fixed the javascript error on our site.

    Thanks for the work you do!


  2. Peter Massey-Plantinga
    Posted 2 years ago #

    scrollTo is also not being called correctly.

    It should be:

    $(document).scrollTo( inPageAnchor, {duration: 1000} );

  3. esmi
    Forum Moderator
    Posted 2 years ago #

  4. Peter Massey-Plantinga
    Posted 2 years ago #

    They're related, but they're definitely separate issues.

    I found this issue because we had a jQuery handler on an <a href="#"> element, which wasn't firing because of this error. So I discovered this error because of the other one.

    Once this error is fixed, the call to jQuery('#') doesn't actually do anything but throw a few warnings (which still should be cleaned up for other developer's debugging pleasure).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Accessibility
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic