Sunday, June 12, 2016

Custom Page Template in Wordpress


Wordpress is very rapidly growing CMS in world.Today I am Going to tell about, How to Create Custom Page Template Wordpress. With wordpress we can design a page with simple HTML/CSS, and installs it in our WordPress site. All that needed is to simply add the following code into the top of your custom HTML page and save it with .php extension.

<?php /* Template Name: About*/ ?>

After adding the code, save this page as about.php and upload it to your current theme folder (../wp-content/themes/your-theme-name). Once the file is uploaded, create a new page and choose the template About under ‘Page Attributes’. Publish the page to see it live.

Visit official Wordpress Codex for More Information

Custom Page Templates
0

0 comments:

Post a Comment