You can certainly use Page Templates for that. They’re a specific type of template file that can be applied to a specific page or groups of pages. Plus, they can be stored in sub folders.
All you need is to put something like this at the top of the template files:
/**
* Template Name: Legal Page
*/
After that, you can choose the “Legal Page” template when editing a page in the admin.
Related Posts:
- Creating page & post templates without template file
- The best way to create pages like an ‘about’, ‘contact’ and etc [closed]
- Find php file anywhere in folder and subfolder from template
- Static page won’t identify template
- Loading custom page template on a one page website
- Utilizing the template hierarchy while storing page templates in a subdirectory
- I’m building a WordPress theme and noticed that the 404 page template runs along with the corresponding templates for each page. Any idea why?
- What is singular.php?
- What does is_page_template() compare against?
- Creating custom blog page template the right way
- How to move page template files like page-{slug}.php to a sub-directory?
- How To Create A Paginated List Of All Categories On My Site?
- is_page_template not working
- When is get_template_part() preferable to simply using the template.php files?
- Create “File-less” Page Template in Functions.php
- How to remove all styles for certain page template?
- Is it possible to manipulate the list of page templates?
- Is there a default template file for child pages / subpages?
- Password protected posts redirects
- Variable use in get_template_part
- Overriding page template using page_template filter
- Simplest way to add a second html editor to the post/page admin?
- How to consolidate multiple static page templates into one dynamic one?
- Loading page content into a variable in template
- Capturing arbitrary semantic URL arguments
- How do I display the text inside the WP editor for a page with a custom template?
- Dynamically assign same page template to child page as parent
- What content should go in index.php?
- Templates & CSS – Proper Programming Practice?
- How to show a post single post in page template
- How to pass a numeric id to a page template?
- How can I dynamically load another page template to provide an alternate layout of the posts?
- page_template toggle between 2 templates + 2 permalinks for same post
- Create a new template for twentytwelve
- get url page template
- Posts archive index pagination in a static page custom query
- index.php template is used instead of blog page
- Video Background – (php & css) – generating 404 error on page load – WordPress Theme File Structure Help
- How to remove a parent theme template from Quick Edit?
- How to Set a Custom Template for Blog Posts
- is_page_template & is_page in functions.php not working
- Removing or Restricting Access to Page Templates for Editor Role
- Created custom post type but selected template not staying selected
- Why is POST’ing to my WP page template producing a 404?
- get page title, url and excerpt of a page
- Can I create a page template, use it once, then hide/remove the option to use it again?
- Are page/post IDs unique across a whole network?
- Custom template for each page
- Theme’s page.php and index.php template files are confusing me
- Grabbing the page template name?
- How can I have a static title on my blog page?
- Adding the Admin Bar to a page with a custom template
- How to apply a custom template for posts by default?
- Use is_category(), is_tag(), … in functions.php
- wp_title() handling of author page
- Can you call a template file without assigning template to a page in the admin panel?
- page-slug goes to not found
- Why am I getting syntax error, unexpected ‘endwhile’ (T_ENDWHILE) in this template? [closed]
- How do I add a body class to specific pages?
- How to edit 404 content via wp editor?
- How to list all titles of posts on a specific page?
- How to handle a missing page.php?
- Customize edit.php Pages listing in dashboard to show only pages with a particular template applied?
- Programatically switch page template?
- How to create a page template that retrieves content from db?
- Change path of the page’s template
- wp_redirect() does not work in custom template file
- Remove all theme CSS & JS from wp_head (but only for 1 page template)
- Get page id of current page from template [duplicate]
- is_page_template returning false
- remove page template from dropdown?
- Export csv and force download in template page
- WPML in custom page templates
- Programatically changing template of a page
- Why (and how?) is get_header() erasing all my stuff?
- get_pages — parent vs child_of?
- WordPress can’t find IXR_Client
- For custom templates, is it better to use `template_include` or `type_template`?
- WordPress page templates in a directory
- How to pass outside function to WP_REST_Request
- Is there any way to get all the name or slug of template parts used in a page?
- Creating a new page template
- Template Hierarchy tag-{slug}.php directory
- page.php not displaying content
- Unexpected results with conditionals inside template part
- Excerpts for Pages
- Visual Editor Templates
- Creating a custom archive template that sorts post by date
- Pre get posts where template is not equal to one specified?
- Change content of page in child theme using plugin
- Can two custom templates be used to create a single page?
- Use the_title_attribute() for the WHERE parameter in a page template
- WP-CLI not setting page template with page_template=”template-name.php”
- Find the page template of the previous page
- Create a page template with No Footer
- Is there a way to set different post templates for parent posts and child posts in the same post type?
- How to Arrange PHP Files to Allow for Multiple Types of Pages?
- How to check if a specific page uses a page template?
- How to make use of WP templates within a nested site structure?
- Only show content if current page is NOT one of 2 page templates [closed]