- This topic has 11 replies, 4 voices, and was last updated 1 year, 7 months ago by
Leo.
-
AuthorPosts
-
November 17, 2020 at 10:10 am #1535088
Jesus
Good afternoon, when I am on the main page and I click on the “load more” button, it does not load more articles, but it redirects me to the main page at the top.
November 17, 2020 at 12:04 pm #1535205Leo
StaffCustomer SupportHi there,
Any chance you can disable all plugins except GP Premium to eliminate conflicts from other plugins first?
Let me know ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 17, 2020 at 12:14 pm #1535233Jesus
I have disabled all plugins and the problem has been fixed. So the problem is a plugin that doesn’t let the button do its job?
November 17, 2020 at 12:20 pm #1535246Leo
StaffCustomer SupportLikely some error from one of your plugins.
You can re-activate them one by one to determine the issue.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 20, 2020 at 3:40 pm #1539530Jesus
I have deactivated all of them one by one, and there is none that makes that error happen, it disappears for a moment, but after time it happens again.
November 20, 2020 at 3:46 pm #1539536Leo
StaffCustomer SupportCan you disable all (not one by one) plugins except GP Premium as once for us to take a look?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 29, 2020 at 12:21 pm #1557094Baz
Hi Leo, I was searching for this very issue.
I’m testing GP Premium on a local host setup with no other plugins. As pointed out by Jesus, I have selected ‘infinite scroll’ & ‘use button to load more posts’ in the Blog module.
When I click on ‘+ More Button’, More posts are loaded, but I’m taken back to the top of the page.
If I uncheck ‘Smooth scrolling’ in Customizer > General, it works as it should.
I would like to keep smooth scrolling for anchor links, but don’t want to be sent back to the top when using infinite scroll.
Must be some conflict between the two options.
Thanks.
November 30, 2020 at 7:20 am #1558626David
StaffCustomer SupportHi there,
have you added any snippets to change the behaviour of the smooth scroll ? for example this which applies smooth scroll to every link:
https://docs.generatepress.com/article/generate_smooth_scroll_elements/
Let me know.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 30, 2020 at 9:30 am #1558852Baz
Hi David,
Yes I did add that snippet to enable smooth scroll to anchor text links.
Thanks
November 30, 2020 at 2:44 pm #1559348Leo
StaffCustomer SupportWhat if you try this instead?
https://generatepress.com/forums/topic/smooth-scroll-stop-scrolling-to-top-of-page-when-the-side-menu-is-opened/#post-1283861Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 30, 2020 at 3:37 pm #1559412Baz
Using the modified smooth scroll anchor link code solved the problem.
add_filter( 'generate_smooth_scroll_elements', function( $elements ) { $elements[] = '.entry-content a[href*="#"]'; return $elements; } );
Infinite Scroll, plus Smooth Scroll activated, now work as they should.
Thanks Leo, and David.
November 30, 2020 at 4:56 pm #1559476Leo
StaffCustomer SupportNo problem ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.