Customizing "Page doesn't exist" page

Hi community!

I am trying to customize the “Page doesn’t exist” page. It currently shows the words " Oops! That page doesn’t exist or is private.". However, I would like to replace this with an image instead. Is there any way to do this? I was thinking of using plugin-outlets but there does not seem to be one for it. Thanks in advance.

4 „Gefällt mir“

Maybe we should have a plugin outlet for this @eviltrout?

4 „Gefällt mir“

Unfortunately it’s not simple since there are two versions of that page. One is generated server side and one is generated client side, depending on the error. We could add an outlet to the client side page but you wouldn’t always see it. Also I should note that page is used for all exceptions so you’d have to differentiate between a network error, a 500 error, a 404, etc.

4 „Gefällt mir“

Just wanted to check, if there is any way to solve this yet? We would love to modify that page too if possible at all.

It has not changed, sorry.

1 „Gefällt mir“

Sure understand. Thanks for the fast reply.

Ich konnte die Nachricht mit etwas Javascript anpassen:

window.addEventListener("DOMContentLoaded", function(){
    document.querySelector('.page-not-found .title').innerHTML = "NEUE NACHRICHT HIER";
});

Das Skript ersetzt das HTML, an dem sich “Ups! Diese Seite existiert nicht oder ist privat” befindet. Ich habe es nicht ausprobiert, aber theoretisch könnte man HTML hinzufügen, um ein Bild darzustellen.

2 „Gefällt mir“