Wordpress: edycja strony 404 - jak to działa
Jeśli edytujesz stronę 404 w WordPress, odwiedzający otrzymają co najmniej miłą wiadomość, jeśli strona nie zostanie znaleziona. Tutaj pokazujemy, gdzie dokładnie możesz edytować stronę.
Wordpress: Jak edytować stronę 404
Najlepszym rozwiązaniem byłoby oczywiście to, że strona „404 - Nie znaleziono strony” wcale się nie pojawia, to znaczy wszystkie odwołania na stronie są poprawne. Niemniej jednak może wkraść się błąd, a co najmniej jedna atrakcyjna strona powinna na niego wskazywać.
- W obszarze administratora znajdziesz pozycję „Projekt” w menu po lewej stronie. Kliknij punkt, aby wyświetlić podpunkt „Edytor”.
- Jeśli klikniesz „Edytor”, pojawi się lista plików, w tym plik „404.php” i okno kodu w środku. Tutaj możesz edytować plik 404.
- Jeśli pliku nie ma na liście, uzyskaj dostęp do serwera za pomocą programu FTP. Tam znajdziesz plik 404.php w „wp-content / themes / default”.
- W pliku PHP wyszukaj „” między znacznikami h2. Możesz zastąpić tę część własnym kodem - o ile znasz PHP.
Alternatywnie: wtyczka 404
Jeśli nie masz pojęcia o PHP, powinieneś unikać edytowania pliku. Zamiast tego użyj wtyczki.
- Stronę błędu 404 można łatwo wprowadzić za pomocą specjalnych wtyczek, takich jak „Forty Four - 404 Plugin for WordPress”.
Wskazówka: jak osadzić obraz tła na stronie 404
W kolejnej praktycznej wskazówce pokażemy, jak utworzyć własny formularz kontaktowy w Wordpress.