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.
Purtroppo non è semplice, poiché esistono due versioni di quella pagina. Una viene generata lato server e l’altra lato client, a seconda dell’errore. Potremmo aggiungere un outlet alla pagina lato client, ma non sarebbe sempre visibile. Inoltre, vorrei sottolineare che quella pagina viene utilizzata per tutte le eccezioni, quindi dovresti distinguere tra un errore di rete, un errore 500, un 404, ecc.
Lo script sostituisce l’HTML dove si trova ‘Oops! That page doesn’t exist or is private’. Non l’ho provato, ma in teoria, potresti aggiungere HTML per renderizzare un’immagine.