Ad goes here

Sunday, 10 December 2017

How to create a custom page in WordPress?

How to create a custom page in WordPress?
WordPress allow you to create page and post in a default design, but if you like to design your homepage or other inner pages different from each other then you have to use custom page. In this article, I will show you how to create a custom page in WordPress.

First open your html editor, Notepad or Notepad++ or Sublime Text or anything which you have and create a blank page.

Now access the theme folder ( \wp-content\themes\themename\) and find page.php and open it in your editor, copy everything and paste it in your newly created blank page. Now you can see commented area which you have to remove and add following line to give template name.

<?php /* Template Name: My Custom Page */ ?> 

Now the complete page will be with following code.
<?php /* Template Name: My Custom Page */ 

get_header(); ?>

<div class="wrap">
 <div id="primary" class="content-area">
  <main id="main" class="site-main" role="main">
   while ( have_posts() ) : the_post();
    get_template_part( 'template-parts/page/content', 'page' );    
    if ( comments_open() || get_comments_number() ) :

<?php get_footer();

Save the file inside \wp-content\themes\themename\ folder. I have given the file name ‘custom.php’ and you can give the file and template name (Template Name: My Custom Page) as per your choice.

You are almost done and now access your admin section and create a new page from left panel and choose template name – ‘My Custom Page’ from right panel and add content in the editor area and publish it.

Choose WordPress Custom Page Template

The WordPress custom page is ready and you can access the page from your website link. By using this custom page you can separate it from other pages design without affecting entire site design and format.


  1. Thanks for the post.Your article is very informative. I think this article has a lot of details needed, looking forward to your new posts. If your interested in getting the service of website agency then visit Web Design Service Rancho Cucamonga.

  2. You have shared a nice information about how to create a custom page in WordPress. it is perfectly described the process of page creation. If you want to know more about WordPress website development process, visit Professional Designers.

  3. Nice article about WordPress. here, You have very well described the process of the custom page creation in the WordPress. If you are interested to know more about wordpress website design prices, Visit

  4. This is a nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.

    Selenium training in Chennai
    Selenium training in Bangalore
    Selenium training in Pune
    Selenium Online training

  5. You know after a hard day I decided to have fun and play games of chance I climbed a bunch of sites and only on this I understood what was happening prosperous play slots now I sit and spend all the time on this site

  6. You receive free support, downloads, themes, etc. And they are also free to install and modify, which makes WordPress so universal and loved.wordpress expert help

  7. No doubt this is an excellent post I got a lot of knowledge after reading good luck. Theme of blog is excellent there is almost everything to read, Brilliant post. Themify review

  8. Now you can see commented area which you have to remove and add following line to give template name. HostGator Coupon Code

  9. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    Selenium Training in Electronic City

  10. Great Blog! Make this type of posts frequently
    Thanks for the information and keep on updating us regularly.hanks for your information really good and very nice web design company in velachery

  11. This is good site and nice point of view.I learnt lots of useful information.

    Selenium Training in Electronic City