Wordpress:404ページの編集-仕組み
WordPressでページ404を編集する場合、ページが見つからない場合、訪問者には少なくとも素敵なメッセージが表示されます。 ここでは、ページを正確に編集できる場所を示します。
Wordpress:404ページの編集方法
もちろん、最善の解決策は、ページ「404-ページが見つかりません」がまったく表示されない、つまり、ページ上のすべての参照が正しいことです。 それにもかかわらず、間違いは忍び寄ることができ、それから少なくとも1つの魅力的なページがそれを指し示すべきです。
- 管理領域の左側のメニューに「デザイン」という項目があります。 ポイントをクリックすると、サブポイント「エディター」が表示されます。
- 「エディター」をクリックすると、ファイル「404.php」と中央のコードウィンドウを含むファイルのリストが表示されます。 ここで、404ファイルを編集できます。
- ファイルがリストに表示されない場合は、FTPプログラムを使用してサーバーにアクセスします。 そこで、「wp-content / themes / default」の下に404.phpがあります。
- PHPファイルで、h2タグ間の「」を検索します。 PHPに精通している限り、この部分を独自のコードに置き換えることができます。
代替:404プラグイン
PHPについてまったくわからない場合は、ファイルの編集を避けてください。 代わりに、代わりにプラグインを使用してください。
- 404エラーページは、「Forty Four-404 Plugin for WordPress」などの特別なプラグインで簡単に見分けることができます。
ヒント:背景画像を404ページに埋め込む方法
次の実用的なヒントでは、Wordpressで独自の連絡先フォームを作成する方法を説明します。