Home › Forums › Support › 404 Page This topic has 8 replies, 2 voices, and was last updated 2 years, 7 months ago by Leo. Viewing 9 posts - 1 through 9 (of 9 total) Author Posts December 16, 2019 at 5:55 pm #1106331 Charles How best to edit what is displayed on the 404 page? Thanks. December 16, 2019 at 6:09 pm #1106343 LeoStaff Customer Support Hi there, What are you hoping to change? Here are a couple of filters for the default text: https://docs.generatepress.com/article/generate_404_text/ https://docs.generatepress.com/article/generate_404_title/ Let me know π December 17, 2019 at 5:20 am #1106673 Charles Maybe I want to use redirects instead? December 17, 2019 at 5:27 am #1106679 Charles I’m having trouble finding the source of my 404 errors. which of my pages is the bad link on? December 17, 2019 at 7:32 am #1106926 LeoStaff Customer Support Maybe something like this would help? https://generatepress.com/forums/topic/all-404-page-redirect-to-homepage/#post-667262 This isn’t related to the theme itself. September 9, 2021 at 2:48 pm #1924842 Roger @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 September 9, 2021 at 3:24 pm #1924858 LeoStaff Customer Support Hey Roger, Try one of these methods: https://docs.generatepress.com/article/adding-php/ Code Snippets plugin would be my recommendation if you aren’t using a child theme already. September 10, 2021 at 5:20 am #1925396 Roger Thank you! π September 10, 2021 at 7:26 am #1925552 LeoStaff Customer Support No problem π Author Posts Viewing 9 posts - 1 through 9 (of 9 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In