Wordpress: muokkaa 404-sivua - miten se toimii
Jos muokkaat sivua 404 WordPressissä, kävijöille korvataan ainakin mukava viesti, jos sivua ei löydy. Tässä näytämme missä voit muokata sivua tarkalleen.
Wordpress: Kuinka muokata 404-sivua
Paras ratkaisu olisi tietysti se, että sivua "404 - Sivua ei löydy" ei näy ollenkaan, eli kaikki sivusi viitteet ovat oikein. Siitä huolimatta virhe voi hiipiä sisään ja sitten ainakin yhden houkuttelevan sivun tulisi osoittaa siihen.
- Järjestelmänvalvojan alueelta löydät kohteen "Suunnittelu" vasemmasta reunasta. Napsauta kohtaa, alakohta "Editor" tulee näkyviin.
- Jos napsautat "Editor", tiedostoluettelo tulee näkyviin, mukaan lukien tiedosto "404.php" ja keskellä oleva ikkuna. Täällä voit muokata 404-tiedostoa.
- Jos tiedosto ei näy luettelossa, käytä palvelinta FTP-ohjelmalla. Sieltä löydät 404.php-tiedoston kohdasta "wp-content / teemat / oletus".
- Etsi PHP-tiedostosta "" h2-tunnisteiden välillä. Voit korvata tämän osan omalla koodillasi - niin kauan kuin tunnet PHP: n.
Vaihtoehto: 404-laajennus
Jos sinulla ei ole aavistustakaan PHP: stä, sinun tulee olla poissa tiedoston muokkaamisesta. Käytä sen sijaan laajennusta.
- 404 -virhesivu voidaan helposti käsitellä erityisillä laajennuksilla, kuten "Neljäkymmentä neljä - 404 WordPress-laajennus".
Vihje: Kuinka upottaa taustakuva 404-sivulle
Seuraavassa käytännön ohjeessa kerromme sinulle, miten voit luoda oman yhteyslomakkeen Wordpressiin.