Hide the button container when no posts and button issues with search
-
Hello,
I have 2 issues with the plugin:
1. On my website, my buttons container have a ::before and ::after to give a special design, and I want to keep it. But in the blog page, if there is no more article to show after clicking the “load more” button, the class “done” is given to the button and not the button container (so I can’t hide my complete button and change the ::after, ::before). I would like to know if it’s possible to give the button container (.alm-load-more-btn) a class when there is no more post to load?
2. The search page is not working correctly. I’ve tried the code on this page https://connekthq.com/plugins/ajax-load-more/examples/search-results/#code but I doesn’t work for me. After a search, if it has post, the button is shown but the posts aren’t displayed but if I type the value given to the $term, the search result is good, the articles are displayed. I’m using the WordPress search widget, I don’t know if it’s the problem?
Thanks for your help and sorry for my broken English.
Have a nice day!
The topic ‘Hide the button container when no posts and button issues with search’ is closed to new replies.