how to assign different template for page wordpress

This blog will guide on how to assign different template for page wordpress or different template for each page in wordpress. Yes its possible and really simple way to do this. After reading this blog you will be surprised on it’s so easy.

Quick and easy steps for creating custom template file for wordpress page.

Step 1: First Understand which is your current theme. Login to wordpress admin panel.
Select “Appearance > Themes ” from left menu, it will reload the page, see the right section. Now see the current theme name and go to the code base “wp-content > themes > current Theme Folder”

Step 2: Now create new file let say’s “phptechi.php” and copy following line inside this file as a comment. Now lets get back to wordpress admin panel. Create New Page (Add New). On this page On right hand side You will see Page Attributes section, Inside this section select drop down option list “Template”, you will see new template name “phptechi”. Select this option and save the page, you are done for admin configuration.

/*
Template Name: phptechi
*/

Note : Please make sure you are not using the reserved theme file names.

Step 3: Now open your page using preview and you are done.

Share this nice post:

9 thoughts on “how to assign different template for page wordpress

  1. 4. Oh yes, In order to debug use template path hints and block names from the Magento configuration section. This makes things easy and find relevant .phtml blocks. If you have more than one store then you need to select specific store in order to enable path hints.

  2. I have read several just right stuff here. Definitely price book marking for revisiting. I surprise how a
    lot attempt you set to make this type of excellent informative site.

  3. I am really loving the theme/design of your blog. Do you ever run into
    any internet browser compatibility issues? A small number of my blog visitors have complained about my
    site not operating correctly in Explorer but looks great in Firefox.
    Do you have any solutions to help fix this problem?

  4. Have you ever considered about including a little bit more than just your articles?
    I mean, what you say is fundamental and everything. Nevertheless think about if you added some great pictures or videos
    to give your posts more, “pop”! Your content is excellent but with pics and clips, this blog could
    undeniably be one of the greatest in its niche. Great blog!

    1. I am writting these blog just to share the experience or common mistake one should not do. I can put the images or videos but it will cost me more from hosting side. Now a days I am paying from my pocket to keep this bloging website live looking forward with donation.

  5. I am really thankful to the owner of this site who has shared this great article at here.

  6. I blog quite often and I truly thank you for your content.
    This article has truly peaked my interest. I’m going
    to book mark your blog and keep checking for new information about once
    a week. I subscribed to your Feed too.

Comments are closed.