How to Create a Custom Page in WordPress

[easy-social-share counters=0 style="button"]

Would you like to generate a custom page in WordPress? You can actually observe that a lot of WordPress web sites use various layouts for various pages. A custom page make it easier to use various layout in appearance from regular pages in WordPress. In this concise article, we can easily provide help to create a custom page in WordPress.

What is a Custom Page in WordPress

By default WordPress make it easier to create posts and pages. Your WordPress theme manages the appearance of your pages by making use of a website template file known as page.php.

This website template file can affect all of the single pages that you simply create in WordPress. However, it’s not all pages are the equal. Little bit of adjustments in their layout or appearance can create to them unique or a much more helpful. Creating a custom page website template in WordPress needs a simple knowledge of HTML, CSS, or PHP.

But the truth is, let’s jump into creating the first custom page in WordPress.

Creating a Custom Page in WordPress

First of all, you are required to open a plain text editor just like Notepad on your laptop. In the blank file insert this type of code on top:

This code easily says WordPress this is a template file so it needs to be also known as CustomPageT1 . You can easily name your template anything you like as much as it is sensible to you.

After you have inserted the code, save the file to your computer desktop like, custompaget1.php.

It can save you the file with any kind of name, remember to make sure that it finishes with.php extension.

On this next step, you really need to be attached to your web site by using an FTP client.

One time attached, go into your current theme and child theme folder. You will see it in /wp-content/themes/ directory. After that, upload your custom page template file folder to your theme.

Right now you will need to login to your WordPress admin area to create a new page and edit an existing one.

On the page editing display screen, scroll down to ‘Page Attributes’ part, so you can see a template drop down menu. Clicking on it will permit you to choose the template yousimply created.


At this moment when you replace template or check out this page, after that you are certain to get to visit a blank page. That’s for the reason that your template is empty or is not going to say to WordPress exactly what to show.

Don’t worry, we can easily assist you to easily manage your custom page template.

Editing Your Custom Page Template

These custom page template is similar to some other theme file in WordPress. You can also insert any HTML, template tags, and PHP code using this file.

The best way to get started your custom page is actually copying the existing page template available with your theme.

Open up your FTP client and then go into your theme file folder. There you will see that a file called page.php. You will need to download and use this file to your pc.


Open up the page.php file in a plain text editor just like Notepad, or copy almost all its content except the header part .


The header part is the commented out part at the top of the file. We are now not copying it, simply because our custom page template already has one.

At the moment you are required to open up your custom page template file and paste it in the end.

Your custom page file would now look such as this:

Save your custom page template file or upload it back into your theme folder using FTP.

Now you can see the page you made using custom page template. It will be able to so now start looking similar to your any other pages in WordPress.

Now you can carry on changing your custom page template file. You can actually customize it in anyway you would like. Just like, you can easily remove the sidebar, insertcustom PHP code, insert any other site HTML you need.

You can easily insert the content by editing the page in WordPress page editor display screen. You should also leave the content area in page editor definitely empty, or insertcustom content directly in your page template.

Submit a comment

Pin It on Pinterest