Archived topic
Load More not working on Category pages
16 replies · Started by Svetoslav on May 14, 2021
Hi guys,
We have the latest GeneratePress and GP Premium, and we believe that after the last update our "Load More" button has stopped workin on the archive/category pages. Now, when it is clicked, it simply jumps the page back to the top.
Hi there,
Any chance you can disable all plugins except GP Premium to eliminate conflicts from other plugins first?
Let me know :)
Hi Leo,
I copied the site to staging and disabled all plugins. Unfortunately, it is still the same. I am sending you a direct link to the staging environment in the private section.
I am adding login details to the staging environment in the private section, incase you want to poke around on the back end. For some reason, I am not seeing any click handlers for that button when I check the Event Listeners in Chrome Dev tools.
I'm seeing a couple of scripts that aren't coming from GP:
https://www.screencast.com/t/PSEWw6RxTq
Any idea where that's coming from? Can you disable them to test?
Thanks.
Just disabled them. Same thing :-(
Sorry
What if you activate the parent theme?
It works with the parent theme activated. Can you find a solution for the child theme as well? basically, I don;t see any of the generatepress scripts loaded when the child theme is active.
I found an old version of GP Premium - 1.8.3 and everything works normal.
Hi there,
Can you install the latest version so I can see the issue?
Hi Tom,
The latest plugin has now been activated. Thanks for looking into this.
Are you using any custom templates in your child theme?
Specifically, do you have this hook?: https://github.com/tomusborne/generatepress/blob/3.0.3/footer.php#L59
Hi Tom,
I have a few custom functions and utilize the following hooks: generate_before_footer_content(insert custom section before the footer columns), generate_footer (to control footer widget widths and insert custom content after them via a custom hook added).
I have a copy of footer.php in my child theme and the generate_after_footer action is there. I have checked all my custom code and I am not attaching to this hook from any of my functions.
I hope this answers your question.
Hi there,
can you temporarily disable your Child Theme to see if the issue is removed.
If it does then it is mostly likely the changes to the footer.php that you have made.
Hi David,
Thank you for you response. If you would have spend a bit of time to browse trough the thread, you would have found out that we already established that when parent theme is activated, then everything works.
My footer.php changes have been working for years and trough many updates of GP Premium. At this stage the only thing that changed and that has broken the site is the new version of the plugin. I am happy to amend my code, as long as I understand what is causing this.
Thanks