WordPress.org

Ready to get started?Download WordPress

Forums

Ajaxify WordPress Site(AWS)
[resolved] Keep page scroll where it is? (8 posts)

  1. richgilberto
    Member
    Posted 1 year ago #

    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/

  2. richgilberto
    Member
    Posted 1 year ago #

    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.

  3. manishkrag
    Member
    Plugin Author

    Posted 1 year ago #

    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

  4. richgilberto
    Member
    Posted 1 year ago #

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

  5. manishkrag
    Member
    Plugin Author

    Posted 1 year ago #

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

  6. paracleteweb
    Member
    Posted 8 months ago #

    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

  7. manishkrag
    Member
    Plugin Author

    Posted 8 months ago #

    you are talking about what?
    scrolling?

  8. paracleteweb
    Member
    Posted 8 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.