Wordpress: bewerk 404-pagina - hoe het werkt
Als u pagina 404 in WordPress bewerkt, worden bezoekers in elk geval gecompenseerd met een leuke melding als een pagina niet wordt gevonden. Hier laten we zien waar u de pagina precies kunt bewerken.
Wordpress: Hoe de 404-pagina te bewerken
De beste oplossing is natuurlijk dat de pagina "404 - Pagina niet gevonden" helemaal niet verschijnt, dat wil zeggen dat alle verwijzingen op uw pagina correct zijn. Niettemin kan er een fout binnensluipen en dan moet minstens één aantrekkelijke pagina ernaar verwijzen.
- In uw admin-gedeelte vindt u het item "Design" in het menu aan de linkerkant. Klik op het punt, het subpunt "Editor" moet verschijnen.
- Als u op "Editor" klikt, verschijnt een lijst met bestanden, inclusief het bestand "404.php" en een codevenster in het midden. Hier kunt u het 404-bestand bewerken.
- Als het bestand niet in de lijst verschijnt, opent u de server met een FTP-programma. Daar vind je de 404.php onder "wp-content / themas / default".
- Zoek in het PHP-bestand naar "" tussen de h2-tags. U kunt dit onderdeel vervangen door uw eigen code - zolang u bekend bent met PHP.
Alternatief: een 404-plug-in
Als u geen idee hebt van PHP, moet u het bestand niet bewerken. Gebruik in plaats daarvan een plug-in.
- De 404-foutpagina kan eenvoudig worden verbeterd met speciale plug-ins zoals "Forty Four - 404 Plugin for WordPress".
Tip: een achtergrondafbeelding insluiten op de 404-pagina
In de volgende praktische tip zullen we u vertellen hoe u uw eigen contactformulier in Wordpress kunt maken.