WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Keep page scroll where it is?

[Resolved] Keep page scroll where it is?

  • I have a site at http://www.davidpollackmusic.com (I might disable the plugin until this is resolved though)

    When you click on one of the links, it automatically scrolls the page down to the top of the Ajaxified div. How can I keep it from scrolling down and hiding the menu?

    Also, a second issue: My main nav is supposed to “bold” the current page link, but since it’s not within the Ajaxified area, “home” is always bold instead of the current page. Is there maybe a different div besides “main” I can use? Or can I specify the nav div to be ajaxified as well somehow?

    Thanks,
    Rich

    http://wordpress.org/extend/plugins/ajaxify-wordpress-site/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Fixed the second issue – for the Twenty Twelve theme (and its child themes) the class for the nav needs to be changed to .main-navigation.

    Thanks for making it so easy!

    Now all that remains is the scrolling issue. Actually I think it’s a “feature” but I want to turn it off.

    Plugin Author manishkrag

    @manishkrag

    in ajaxify.js file search for below code

    jQuery('html, body').animate({
    scrollTop: jQuery(contentSelector).offset().top
    }, 1000);

    and comment the above code.

    Thanks
    Manish

    Thanks! This worked great! I’ll just remember to do this whenever there’s an update to this plugin, right?

    Plugin Author manishkrag

    @manishkrag

    No, in next version I’ll keep in mind to provide setting in admin section

    Hello,
    The commenting out solution works for me, except it doesn’t seem there is an admin option yet… That would be a very much appreciated feature if you’re still considering it.

    Thank you

    Plugin Author manishkrag

    @manishkrag

    you are talking about what?
    scrolling?

    Yes, I do not want scrolling

    in ajaxify.js file I’ve commented below out which works perfectly as long I remember on next update:

    jQuery('html, body').animate({
    scrollTop: jQuery(contentSelector).offset().top
    }, 1000);

    The auto scroll does not work well with my design.
    Thank you for asking.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Keep page scroll where it is?’ is closed to new replies.