WordPress.org

Ready to get started?Download WordPress

Forums

Need a smooth scroll to anchor (2 posts)

  1. OM2
    Member
    Posted 2 years ago #

    I can't find a plugin for this - I'm sure t exist - maybe I'm not searching for the right keywords

    I want a smooth scroll to an anchor using something like Jquery

    Any pointers would be great

    Thanks

    Omar

  2. crs1138
    Member
    Posted 1 year ago #

    I'm trying to get this working

    http://www.sycha.com/jquery-smooth-scrolling-internal-anchor-links

    but, I get an JS error in the console, when trying to click on posts permalink, saying:

    Uncaught TypeError: Cannot read property 'top' of null /category/birth-stories/:412
    (anonymous function) /category/birth-stories/:412
    f.event.dispatch jquery.js:3
    f.event.add.h.handle.i

    regarding this bit of code

    $('html,body').animate({scrollTop:$(this.hash).offset().top}, 500);

Topic Closed

This topic has been closed to new replies.

About this Topic