• samb_nz

    (@samb_nz)


    Hey,

    For starters, awesome plugin, just found pjax on github, wanted it in WP, then found you plugin.

    Just wondering if it’s possible to prevent the viewport from going back to the top of the page once it finishes loading in the new content ?

    Cheers,
    Sam

    https://www.ads-software.com/plugins/wp-pjax/

Viewing 6 replies - 1 through 6 (of 6 total)
  • daslicht

    (@daslicht)

    I think you would have to define a min height probably ?

    Thread Starter samb_nz

    (@samb_nz)

    I worked it out, pjax has this property which you can change.

    $.pjax.defaults.scrollTo = false;

    I had to add this to the WP-PJAX.js.php within the plugin, going forward it would be nice to have it as an option in the admin.

    Plugin Author Peter Elmered

    (@pekz0r)

    Thank you for fining that option. I will make and effort to improve this plugin the coming weeks.

    Thread Starter samb_nz

    (@samb_nz)

    Thanks @pekz0r,

    Also, I couldn’t seem to get the page title to change on pjax load, should that be working ? – I saw some code in there regarding the title, but I am not sure if it is finished. Your feature list regarding being able to load different parts would be awesome.

    Cheers,
    Sam

    Plugin Author Peter Elmered

    (@pekz0r)

    I’m actually not sure regarding the issue with the title. I haven’t touched this plugin for over halv a year now…

    I will try to find the time to work on this the coming weeks.

    Thread Starter samb_nz

    (@samb_nz)

    Cool as Pekz0r, let me know if you would like any help, I think your plugin is super useful.

    Cheers,
    Sam

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Page Jump’ is closed to new replies.