Create multiple custom HTML pages

admin2025-06-04  11

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?

Share Improve this question asked Jan 2, 2019 at 15:37 Jethro HazelhurstJethro Hazelhurst 1214 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You 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/

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749050558a315934.html

最新回复(0)