Wordpress: muutke 404 lehte - kuidas see töötab
Kui redigeerite lehte 404 WordPressis, hüvitatakse külastajatele vähemalt kena sõnum, kui lehte ei leita. Siin näitame, kus saate lehte täpselt redigeerida.
Wordpress: kuidas muuta lehte 404
Parim lahendus oleks muidugi see, et lehte "404 - lehte ei leitud" ei ilmu üldse, see tähendab, et kõik lehel olevad viited on õiged. Sellegipoolest võib viga sisse hiilida ja siis peaks vähemalt üks ahvatlev leht sellele osutama.
- Teie administraatori piirkonnas leiate vasakpoolsest menüüst üksuse "Kujundus". Klõpsake punkti, alampunkt "Editor" peaks ilmuma.
- Kui klõpsate nupul "Redaktor", kuvatakse failide loend, sealhulgas fail "404.php" ja keskel koodiaken. Siin saate faili 404 redigeerida.
- Kui faili loendis ei kuvata, avage server FTP-programmiga. Seal leiate 404.php jaotises "wp-content / themes / default".
- Otsige PHP-failis h2-siltide vahel sõna "". Saate selle osa oma koodiga asendada - kui olete PHP-ga tuttav.
Alternatiiv: pistikprogramm 404
Kui teil pole PHP-st aimugi, peaksite faili redigeerimisest eemal hoidma. Selle asemel kasutage pistikprogrammi.
- 404 tõrkelehte saab hõlpsasti ette valmistada spetsiaalsete pistikprogrammidega, näiteks "Nelikümmend neli - WordPressi plugin 404".
Näpunäide. Kuidas manustada taustpilti lehele 404
Järgmises praktilises näpunäites räägime teile, kuidas Wordpressis oma kontaktvormi luua.