Site logo

Archived topic

404 Page

8 replies · Started by Charles on December 16, 2019

Viewing posts 1–9 of 9

How best to edit what is displayed on the 404 page? Thanks.

Maybe I want to use redirects instead?

I'm having trouble finding the source of my 404 errors. which of my pages is the bad link on?

@Leo

Where do I put these filters? I don't see where in GeneratePress I can add them?

add_filter( 'generate_404_title','generate_custom_404_title' );
function generate_custom_404_title()
{
      return 'Custom 404 title';
}

add_filter( 'generate_404_text','generate_custom_404_text' );
function generate_custom_404_text()
{
      return 'Custom 404 text';
}

Where do I use the above code?

Thank you,
Roger

Thank you! :)

No problem :)

This archived topic is closed to new replies.