• cheekypoppet

    (@cheekypoppet)


    Hello there
    First of all, what a fantastic plugin!! I will leave a review shortly, and add a few suggestions to your pinned feature request…

    However, in the meantime, I do have one problem with it: the pagination scrolls the page back up to the top, rather than staying focussed on the post grid. My post grid is quite a way down the page so this is quite a big issue.

    Any suggestions how I can stop this? I’m very new to WordPress, and web design in general, so I’m not even sure if it is your plugin!!

    Many thanks…

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter cheekypoppet

    (@cheekypoppet)

    Update: it’s not scrolling to the top, it’s refreshing the page. Sorry, I didn’t notice this earlier!

    I think it is something to do with this plugin as I have a simple image slider with pagination on the same page and it doesn’t refresh the page…..

    I’m still searching for solutions, but everything I’ve found is way above my pay-grade or hasn’t worked…

    Plugin Author Code Amp

    (@codeamp)

    Hey @cheekypoppet

    You’re right regarding the page refresh – it’s “default” behaviour for links to cause a page refresh.

    The plugin you mention, from what I can see (I think it’s the one on your homepage?), loads all the results at once, which means they can load the other results quite easily (without page refresh).

    Our plugin, is designed to support any number of posts (thousands even), and we cannot preload all the results (because thousands of posts would slow down your page).

    That being said, there is another way to do this (using ajax to fetch the new pages) and that’s something we should put on the roadmap / todo list.

    Best

    Thread Starter cheekypoppet

    (@cheekypoppet)

    Hey, thanks for the response.

    Yes, the plugin I was referring to was SlidersPack, which I’ve used for the image sliders on the homepage. It’s a one-page site, so everything originates from the homepage!!

    Anyway, that at least explains what’s happening and it’s good to hear you’re thinking of something that will eventually overcome the issue. It’s obviously a potential issue for anyone that wants to put your custom layout grid anywhere but at the top of the page and, from what I can see, it’s not uncommon. I’ve come across plenty of queries where people are wanting to do this with other grids/sliders and have hit the same issue – sadly, none with solutions that I have been able to implement with your plugin!

    Are you able to point me in the direction of anything I can do to address this in the meantime? I have seen a couple of possible solutions:
    1. Change the link to “#/”, although this was suggested in the context of stopping scrolling so perhaps it won’t work in this situation?
    2. Using coding to prevent default behaviour. I have Code Snippets and FTP (and a backup of the site, obviously) so I’d be willing to give this a go as an interim/temporary fix but I have no idea which file it needs to go in – or if it will work!!!

    Any help with this much appreciated!

    Kind regards
    C

    Plugin Author Code Amp

    (@codeamp)

    Hey @cheekypoppet

    I’m afraid I really don’t know a way to quickly implement this feature…

    The only 2 options I see require a good amount of (not very straight forward) coding…

    1. First option would be to hide the pagination, and set the layout to load more results than you need (say, 10 results). Then you write some custom css / javascript, to show only the 1st 5 posts, and implement your own JS based pagination so when you click “next” it would show the next 5

    2. Any other solution I think would essentially require me to build out the feature – I know how we’ll tackle it (as we have a similar feature in our other plugin), but just need to get round to the implementation – the list is pretty long at the moment, and the main priority is an update planned for early next year which changes a lot of the underlying architecture of the plugin – we need to make this change first before laying on more functionality (otherwise this double our workload for new features added before that point).

    Sorry my response is not more positive right now, this will be addressed there are just a lot of other priorities ahead at the moment.

    Best

    • This reply was modified 3 years ago by Code Amp.
    • This reply was modified 3 years ago by Code Amp.
    • This reply was modified 3 years ago by Code Amp.
    • This reply was modified 3 years ago by Code Amp.
    Thread Starter cheekypoppet

    (@cheekypoppet)

    Ok, thank you. Those options sound a little beyond me just at the moment but at least telling me that has saved me spending days failing to find a solution!!

    I can completely understand what you say about having to do things in the right order, and I do love your plugin (and your kind responsiveness to enquiries!), so I think I’ll just do it a bit differently until you’re able to implement a robust solution!

    Kind regards
    C

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Stop scroll to top?’ is closed to new replies.