Site logo

Archived topic

Change the text 404 error

30 replies · Started by Gustavo on June 20, 2015

Viewing posts 16–30 of 31

Thanks Tom,
I've used the Code Snippets plugin and it works fine.
All the best,
Helen

Glad we could help!

Hello,

It's possible to redirect a 404 page to index or other page ?

thank you, with htaccess or snippet it's not possible ?

I'm sure it's possible, but I don't know the exact code. Might be worth asking over on stackoverflow :)

but it's ok with this plugin, thx

No problem :)

And how to remove the search form from a 404 page?

Can you open a new topic please?

Thanks!

Glad you did!

is there any chnace that the recent update may have stopped your code snippet from working. Maybe something to do with the translations?

Originally my default generatepress 404 page had

"It looks like nothing was found at this location. Maybe try searching?"

I used the snippet above to change the text to my own and it was working fine, but after the recent update my changes aren't working and now it says

"Sorry, but nothing matched your search terms. Please try again with some different keywords."

which is different from what is in the 404.php file so now I'm really confused.

I use Australian english

Thanks

oh my goodness - I'm so sorry - I must have been working too late.

I was getting confused between the 'page not found' and 'search term not found' messages

The 'page not found' text replacement is still working fine using this code snippet.

The 'search term not found', as you say, needs to be 'translated' as a string which I have now done.

This archived topic is closed to new replies.