WordPress does not allow adding files though the admin side of things, therefore you will need FTP or SSH access to the server to add a file to your theme directory at least to initially add the template then you can edit it though your hearts content in the admin. (there may be a plugin that allows the admin to add theme files but I’ve never looked)
Nevertheless, here’s how to add a new template…
-
Create a new php file and include the following to create a custom template and upload it to
wp-content/themes/clean-home
<?php /* Template Name: My Template */ ?>
-
Then just add Your Loop
-
Set a page to use your new custom template.
Protip: You may also be able to copy another template and change the name which will save you time of adding the header, footer, sidebar, and other styles with still allowing you to create a custom template.
Related Posts:
- Opinions and recommendations on the best barebones base theme [closed]
- Dynamic template serving, change theme_root using add_filter from current theme
- How to override the “inc” folder (or any folder) in a theme using child theme?
- Is it possible to access Gutenbergs reusable blocks in CPT block templates?
- Loading template files from a subfolder in my theme?
- WordPress as Backend, Laravel Front End: How to connect Routes?
- Can I obtain differents links for different installed theme?
- WordPress ignoring specified template for front page. Why?
- Can I apply a WP theme to a specific custom page template?
- WordPress Fatal error: Call to undefined get_header() in index.php on line 15 [closed]
- Change Theme from Plugin based on query_vars
- Added a new template file to a theme – get Call to undefined function error
- How to find a file in WordPress themes [closed]
- Display a specific dynamic sidebar widgets on a specific page
- Child theme Page Template not loading
- Creating new templates in child themes breaks layout
- Get WordPress to use another custom “author.php” file (“custom-author-file.php”)
- Search form not finding content in template page
- display comment form for specific post id
- Selected template is not respected for home page in WordPress
- Putting two themes together to create a complete site
- Is there a way to upgrade a theme without losing custom templates?
- Need help with making a website where user can add products
- Advantages of wordpress theme vs wordpress as a backend only [closed]
- What’s a good way to unenqueue all scripts for a single template page?
- Using the same database on another Subdomain
- Trying to fix a website that was built with WordPress and then taken off of it
- Conditional config WP_HOME/WP_SITEURL does not update bloginfo(‘template_url’)?
- Create Custom Attachment Template That is Processed from Plugin Folder?
- Multiple sub directories for theme template pages
- How to remove the tripadvisor logo from the wordpress theme?
- Please help me clear my confusions about WordPress
- WordPress 2022 template, how to see the blocks added in post template on post edit?
- Can I use non-wordpress themes in WordPress?
- WordPress keeps switching back to empty template
- Removing a widget via theme editor
- How do I bring a page template into a new theme with separate styling?
- 12 column grid layout
- Theme Dev | Convert Template to Theme
- Revamping a WordPress mirror site – and I don’t know where to start!
- What is the template file for topic layouts in bbPress?
- Will this js code work in a page template?
- How to find out which template the HTML content comes from?
- Create a child Theme or custom Theme
- How to modify/ customise NextGen Gallery’s templates? [closed]
- wordpress template page Usage [duplicate]
- Overwrite template-tags.php in child theme
- What happens to bespoke page template references on theme change?
- How to add sidebar to homepage programmatically?
- Get header/footer list for a theme
- Homepage not loading correctly, only after refreshing
- How to clone a theme template from within WordPress? [closed]
- what the best way to include images from the template’s images folder?
- Set Featured Image for Archive templates
- How do I add a new string to a .po or .pot file?
- Free/Open-Source Theme Frameworks as an Alternate to Thesis? [closed]
- How to attach region identifier to a pretty url?
- How to get themes from wordpress.com per SVN? [closed]
- Edit raw HTML of the landing page
- remove rel=next on home page but not others
- Archiving annual festival site
- How to know the theme name of a wordpress blog?
- How to know if user choose to show full post or excerpt?
- Theme settings default, strange behavior before first save
- Is that worth it to find a designer for creating a WordPress theme for selling on ThemeForest? [closed]
- Get name of current page template in Gutenberg era
- Mobile issue – website isn’t properly detecting screen size [closed]
- Redux callback action
- translation does not work for ‘Home’
- How to translate a string that contains a WordPress sitename
- Is that a malicious code?
- How can my user make their own Blog/Diary
- Where do I find (free) fully-internationalized themes? [closed]
- How to trace and resolve a theme problem such as flickering links in WordPress? [closed]
- Child theme looks different from parent theme, and incorrectly displays parts
- Adding an extra sidebar to your theme
- Widgets not showing on sidebars
- my blog crashes ie7?
- How would I got about calling a php file every time someone publishes a new post?
- Flexslider in child theme
- How to edit the default comment title?
- Why my function.php file in theme delete automatically? [closed]
- How to reverse the pagination numbers of an archive?
- Theme CSS missing completely
- How to implement this layout?
- WordPress customizer extremely slow, cant work in it
- Missing privacy policy checkbox on login page (using Enfold theme)
- Themes don’t show up in the dashboard -> Appearance -> Themes
- Route to custom file
- “Template is missing” install error on non-child theme
- No “available widgets” (wordpress 3.2.1 multisite)
- How to create a second index.php?
- how to use Easy Docs theme to write a book?
- 2 WP websites same content different themes
- How is WordPress child related to Buddypress child theme
- Is there a block to print post link standalone in a block theme?
- Define a Custom Template Part As A Widget Area
- Changing Sidebar In 2023 Theme
- Disabling Full Site Editor (FSE)
- get_post_meta() doesn’t allow email