[Resolved] How to remove "Load More" button at 'search result page' and '404 pages'?

Home Forums Support [Resolved] How to remove "Load More" button at 'search result page' and '404 pages'?

Home Forums Support How to remove "Load More" button at 'search result page' and '404 pages'?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #503277
    Feri

    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

    #503369
    Tom
    Lead Developer
    Lead Developer

    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

    #503590
    Feri

    1. how about 404 page?

    2. for some reason, i dont have child themes. is it possible edit custom with “function snippet”?

    #503916
    Tom
    Lead Developer
    Lead Developer

    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/

    #504333
    Feri

    thank you, tom.
    mark as resolved

    #504634
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.