0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Wordpressで固定ページをオリジナルテンプレート適用する方法

Last updated at Posted at 2024-02-17

1 . wordpressのtheme内オリジナルテーマフォルダにpage-(任意の名前).phpを作る

例えば、ニュースならpage-newsなど任意の名前のphpを作る

※ここではお知らせページを例とする

2 . 1でつくったphp内上部に以下を記載

page-news.php
<?php
/**
Template Name: お知らせページ
***/
?>

3 . Wordpressにアップロードし、固定ページを新規追加、テンプレートを選択の欄から「おしらせページ」を選択できるようになる

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?