Archived topic
How to remove "Load More" button at 'search result page' and '404 pages'?
5 replies · Started by Feri on February 22, 2018
Hi GP Team,
1. how to remove "Load More" button at "nothing found search result page" and '404 page'?
screenshot: https://prnt.sc/iijhog
2. and how to edit and custom "nothing found search result page" like change text 'nothing found - sorry but..."
screenshot: https://prnt.sc/iijhog
thank you
1. This is currently a bug, you can hide the button with this CSS until GPP 1.6 is released:
.search-no-results .load-more,
.error404 .load-more {
display: none;
}
2. Right now you would have to copy the no-results.php file, and paste it into your child theme. Then you can make changes to it: https://github.com/tomusborne/generatepress/blob/2.0.2/no-results.php
1. how about 404 page?
2. for some reason, i dont have child themes. is it possible edit custom with "function snippet"?
1. Edited the code above.
2. Unfortunately not, since it's overwriting a template. You can install a child theme quite easily: https://docs.generatepress.com/article/using-child-theme/
thank you, tom.
mark as resolved
You're welcome :)