Site logo

Archived topic

How to edit "Page not found" in Read theme

1 reply · Started by Vladimir on April 14, 2022

Viewing posts 1–2 of 2

Hi,

On attention.cc where I am using your READ theme, I would like to edit error page that shows up by default when another page is not found. Like this page that shows up here: https://attention.cc/sitemap.xml

I just want to rename text which says:

"Oops! That page can’t be found.
It looks like nothing was found at this location. Maybe try searching?"

Where do I do that?

Thank you.

Hi Vladimir,

Using these two would do:

https://docs.generatepress.com/article/generate_404_text/

https://docs.generatepress.com/article/generate_404_title/

For instance you may try adding this PHP snippet through a plugin like Code Snippets:

add_filter('generate_404_title',function($title){
	return "My new title";
},10,1);

add_filter('generate_404_text',function($message){
	return "My new message";
},10,1);

Kindly replace the title and the message to your preference.

Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets

Hope this helps! Kindly let us know how it goes.

This archived topic is closed to new replies.