admin管理员组文章数量:1130349
I need to make a few unique "landing" pages each with unique designs. They will each be one off.
I am looking for a way to organise these pages.
What I used to do is have a subfolder in the theme directory called "pages" with a list of php files for example the homepage would be if is "homepage" then show this html.
Then I would simple include each "page" in my functions.php file. I don't think this is the accepted way to do things.
Some pages would be "homepage", "pedagogy", "results" etc... how can I organise these static HTML pages without them being in the root of my theme like page-homepage.php or page-results.php?
Or is the functions.php include method viable?
I need to make a few unique "landing" pages each with unique designs. They will each be one off.
I am looking for a way to organise these pages.
What I used to do is have a subfolder in the theme directory called "pages" with a list of php files for example the homepage would be if is "homepage" then show this html.
Then I would simple include each "page" in my functions.php file. I don't think this is the accepted way to do things.
Some pages would be "homepage", "pedagogy", "results" etc... how can I organise these static HTML pages without them being in the root of my theme like page-homepage.php or page-results.php?
Or is the functions.php include method viable?
1 Answer
Reset to default 0You can created pages within wordpress itself and then assign a custom template.
You may store the template files however you like as long as they are wihtin the theme folder itself.
https://developer.wordpress/themes/template-files-section/page-template-files/
I need to make a few unique "landing" pages each with unique designs. They will each be one off.
I am looking for a way to organise these pages.
What I used to do is have a subfolder in the theme directory called "pages" with a list of php files for example the homepage would be if is "homepage" then show this html.
Then I would simple include each "page" in my functions.php file. I don't think this is the accepted way to do things.
Some pages would be "homepage", "pedagogy", "results" etc... how can I organise these static HTML pages without them being in the root of my theme like page-homepage.php or page-results.php?
Or is the functions.php include method viable?
I need to make a few unique "landing" pages each with unique designs. They will each be one off.
I am looking for a way to organise these pages.
What I used to do is have a subfolder in the theme directory called "pages" with a list of php files for example the homepage would be if is "homepage" then show this html.
Then I would simple include each "page" in my functions.php file. I don't think this is the accepted way to do things.
Some pages would be "homepage", "pedagogy", "results" etc... how can I organise these static HTML pages without them being in the root of my theme like page-homepage.php or page-results.php?
Or is the functions.php include method viable?
1 Answer
Reset to default 0You can created pages within wordpress itself and then assign a custom template.
You may store the template files however you like as long as they are wihtin the theme folder itself.
https://developer.wordpress/themes/template-files-section/page-template-files/
本文标签: Create multiple custom HTML pages
版权声明:本文标题:Create multiple custom HTML pages 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749050534a2308545.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论