WebP Image Guide: How to Use WebP Format with WordPress
We all love a good GIF, but image formats have come a long way since the introduction of the GIF in 1987. Savvy web designers have moved on to embrace JPEGs, PNGs, and now WebP. […]

From landing pages to special promotions, there are lots of reasons why you might want to know how to create a custom page template in WordPress.
This post answers when to use custom templates and reviews three options for how to create a custom page template in WordPress.
Before you learn how to create a custom page template, let’s review if you need one. Why do the work if you don’t have to, right?
The word template can have several meanings when it comes to building websites. In the WordPress universe, people often conflate templates and themes. Your theme is what controls the look and layout of your website. In addition to style settings, each theme includes standard page templates, such as a template for what an archive page should look like or how a standard post will display.
When we talk about creating a custom page template in WordPress, we’re referring to building another template that’s not a part of your existing theme. For example, an eCommerce site will have templates for a homepage, category pages, and product pages. But if you wanted a special promotion where people needed to sign up for your newsletter or get a special discount, you would need a page template for that landing page.
The obvious answer to the question of when to use a custom page template is whenever your existing page templates can’t accommodate your design or needs. But you also need to consider balancing the benefits with the effort.
Templates work best when you use them repeatedly. Back to our eCommerce example, it makes sense to build a template if the store frequently runs these promotions. The template will save time on future builds because people can update the content without modifying the layout. But if you only need something for one page or one-time use, you might be better off using custom code with your existing page template.
To create a custom page template in WordPress, you can use the block editor, use a page-building plugin, or do it manually. The first two options are considerably easier and more beginner friendly. Let’s see how each one works.
If you’re using a block-compatible theme, you’ll have access to the new full site editing features. This method is the fastest and easiest way to create a custom page template in WordPress.

4. Give the template a name and click the “Create” button. This name is for internal use and won’t be displayed anywhere on your site.

5. The site editor will load. Then you can start building your template with blocks and patterns.
6. When you’re done, click “Publish.” You can now use the template to create pages.
If you’re new to using blocks for building pages, check out these resources for help:
If you don’t have a block-enabled theme, you won’t be able to use the Site Editor. If you still want a drag-and-drop experience for building your page template, you’ll need to use a page-building plugin.
Page-building plugins can negatively impact your site loading speed. They add a lot of code, unused CSS, and JavaScript to a page. If you’re concerned about high traffic and slow loading times, be sure to test out any page builder before launching the page.
Finally, if you don’t have a block-compatible theme and don’t want to use a page-building tool, you can manually code your own page templates.
Create a .php template file. When picking a file name, do not use page- as the prefix for the file. WordPress views page- as an instruction to only use the template for one specific page.
At the top of your file, you’ll need to state the templates name like this:
<?php /* Template Name: Example Template */ ?>
From there, you’ll create the template using HTML, template tags, and PHP code.
When you’re done, upload the file to your current theme’s directory using an FTP client or file manager.
To save time when creating a custom page template, WordPress recommends making a copy of your theme’s page.php file so you can start by modifying your existing template instead of coding everything from scratch.
Once you’ve added your file to your theme folder, it will be available as a choice when creating a new page.
When trying out new designs or building new page templates, it helps to have a way to test them without messing up your current site. At Pressable, we’ve got you covered.
All Pressable plans include a free staging site. You can create a copy of your live site and then use the staging site to try out new designs behind the scenes.
Pick a managed WordPress hosting plan today and start enjoying this and all the other perks of hosting with Pressable.
We all love a good GIF, but image formats have come a long way since the introduction of the GIF in 1987. Savvy web designers have moved on to embrace JPEGs, PNGs, and now WebP. […]
While most website owners know how important it is to regularly update their website files and databases, many people neglect it due to the time, work, and technical know-how involved in doing so. This article […]
When you’re building out a WordPress website you’re going to have a few different options for building and deploying your website. You can either build and make changes to your site live (not recommended), use […]