80 likes | 101 Views
<br><br>Easy guide about creating a custom page template in WordPress, you can change anything yourself.<br>
E N D
How To Create Custom Page Template How To Create Custom Page Template in WordPress in WordPress Several WordPress themes doesn’t allow you to edit some pages of the template for custom entries, for this, We always look for custom solution or try to perform it ourselves. Here, I have listed step by step guide about creating custom page template in WordPress. Using Text Editor WordPress Admin Panel Blank Page Theme Code Installation Applying Custom Code On Twenty Sixteen Theme
Use Of Custom Page Template Use Of Custom Page Template • We can use custom page template for multiple purposes that include: • Show recent posts of each category • Embed Google Map or any script • List of all authors. • Recently uploaded images • Custom design page for the portfolio • Contact page
Open a Text Editor and Place The Following Open a Text Editor and Place The Following Code in it. Code in it. 1 <?php /* Template Name: PageWithoutSidebar */?> This line of code will help you to find the name of your template as we have used a name “PageWithoutSidebar”, you can use any name yourself but always put .php extension in it, never forget of adding it.
Now Login To Your Hosting Panel Now Login To Your Hosting Panel Once you are logged in to your hosting cpanel, now you need to navigate to /wp-content/themes folder. Now, Open your current theme folder upload there PageWithoutSidebar.php file
Here’s the Screenshot Here’s the Screenshot
Now Go To WordPress Admin Panel Now Go To WordPress Admin Panel Go to WordPress Admin Panel > Pages > Add New. You will see the new custom page template shown on the right side of the page.
Create New Page and Set Its Template to Create New Page and Set Its Template to PageWithoutSidebar PageWithoutSidebar. Once you are done, Publish it. . Once you are done, Publish it.
For More Information You Can Check Original For More Information You Can Check Original Publication Publication • Source: https://www.cloudways.com/blog/creating-custom-page- template-in-wordpress/ • To Create Custom Page Template in WordPress you can visit Now. • For Best Managed WordPress Hosting, You Can Go With Cloudways.