Wordpress: редактирайте 404 страница - как работи
Свързани Видеоклипове: (Септември 2024).
Ако редактирате страница 404 в WordPress, посетителите ще бъдат компенсирани поне с хубаво съобщение, ако страница не бъде намерена. Тук показваме къде можете да редактирате точно страницата.
Wordpress: Как да редактирате 404 страницата
Най-доброто решение, разбира се, е, че страницата „404 - Страницата не е намерена“ изобщо не се появява, тоест всички препратки към вашата страница са правилни. Въпреки това, грешка може да пропълзи и тогава поне една привлекателна страница трябва да сочи към нея.
- В областта на вашия администратор ще намерите елемента "Дизайн" в менюто отляво. Щракнете върху точката, трябва да се появи подточката "Редактор".
- Ако щракнете върху „Редактор“, се появява списък с файлове, включително файл „404.php“ и кодов прозорец в средата. Тук можете да редактирате файла 404.
- Ако файлът не се появи в списъка, достъп до сървъра с FTP програма. Там ще намерите 404.php под „wp-content / themes / default“.
- Във PHP файла потърсете "" между h2 маркерите. Можете да замените тази част със собствен код - стига да сте запознати с PHP.
Алтернатива: Плъгин 404
Ако нямате представа за PHP, трябва да стоите далеч от редактирането на файла. Вместо това използвайте плъгин.
- Страницата с грешки 404 може лесно да бъде подготвена със специални плъгини като "Четиридесет четири - 404 Plugin за WordPress".
Съвет: Как да вградите фоново изображение в страницата 404
В следващия практичен съвет ще ви кажем как да създадете своя собствена форма за контакт в Wordpress.