theme template


Sometimes, you need to add some extra functionality to your WordPress website. But, you can’t find by default in your theme. It’s a very common problem for many website users. For that, you want to change your theme. But it’s another wrong decision for many WordPress users. Because of that, if you change the theme you may lose any other facility in the new theme. On the other hand, it’s a very expensive process. If you haven’t much budget, it’s very painful for you. In this article, I will tell you about the WordPress child theme. Let’s know about what is child theme in WordPress and how it works.

What is a child theme?

When we need to extend our website functionality. We need also to extend theme functionality for the WordPress website. Because of that, website functionality depends on the WordPress theme. It’s true, the theme doesn’t support all the functionality which you want to implement on your website. But we can’t lose our website’s existing functionality. That’s why we need to use child theme functionality. Note that, when you will create a child theme you have to mention a parent theme. Because of that, the child theme doesn’t work individually. It depends on the theme. You can use parent theme functionality in the child theme.

How does child theme work?

When you will create a child theme, it will be a separate folder in the theme directory. You have to mention as a child theme inside the child theme codes.

wordpress child theme

WordPress will be detect parent theme by folder name prefix. You have declared a prefix as a theme folder name which theme is existing in the theme repository. Otherwise, WordPress can’t detect your child’s theme. If you declare a new folder with existing theme name prefix, you will be able to activate this child theme from the WordPress dashboard. Now, you can enjoy parent theme functionality from this child theme. In this stage, you add any other functionality in the child theme. If you update your parent theme, this functionality will not be lost.


In this article, I have tried to tell you about the most important part of the WordPress child theme. I hope now you can extend your WordPress website functionality with the child theme. You can know more about child theme from here. If you face any problem, you can contact me. I will try to help you as I was known.

Many people want to add custom designs to their WordPress theme. But, It’s completed for a non-programmer person. That’s why In this article I will show you how to add a template in WordPress or theme.

What is Template in WordPress Theme

If you want to add a template in your theme, first of all, you have to know what is the template in theme. The template is the website looking layout in WordPress theme. Suppose, how you want to look at your blog page, the home page, category page, etc. Mainly template layout depends on the developer who has created the theme. The user just defines a default template on their website. They didn’t add any custom template as their choice. If you are a user, you will find a template option in your dashboard page right sidebar which is located in the “Page Attributes” section. You can see the page attributes option below.

Page Attributes Photo of How to add an template in WordPress Theme
How to add a custom template in WordPress

Let’s create a new option here

In this section, you can change your website page layout by choosing your desired template. Sometimes, you may be not liked the default templates. That’s why you have to create a custom template in your theme. ‍So, you can set the desired design on the website. Let’s talk about how to add a custom template to your WordPress website.

Create a file for a template

First of all, log in to your hosting control panel. Because of that, you have to create a file into the hosting root folder. After login your Cpanel, go to the root folder. Normally, the root folder name is public_html in many hosting.

Now go the theme folder which is activated in the WordPress admin panel. Otherwise, you can’t see any output in the front end. Example: public_html > wp-admin > themes > theme_folder.

When you will be the entire theme folder you will see many theme files in the folder which is created by the theme developer. Don’t edit those files. If you edit any file, because of that it may be corrupt your website. Just create a file with a PHP extension. You can use any name of the file.

Comment on the file.

Now open this file into the editor. Write the following codes into the file.

Template Name: Your Desired Name

Now go to the WordPress dashboard and try to create a page. I hope you will be seen a new option in Page Attributes dropdown. It will be named with which name you have provided in the hosting root folder when you created the file. Now If you chose this option and create a new page, you will see a blank page. Because of that, you just initialize the template. It’s not done.

At this time, go to the control panel root where you have created a new file. Now you can design a new or put your designed code into the file. After putting the design code into the file, reload your website new page link (which page you have created recently).

So, this time I hope you can customize your website. If you have knowledge about WordPress theme files, you can set other options.

If you don’t know how to install WordPress, you can read How to install WordPress in your server. It can help you.