Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a custom page in Wordpress? [closed]

How can I to create a custom page in Wordpress 3.0. Give me any link of tutorial.

like image 878
Kartik Patel Avatar asked Mar 02 '12 10:03

Kartik Patel


3 Answers

WordPress provides a clever way to do this called Custom Page Templates. To create a WordPress Page Template, you’ll need to use your text editor. Go to the directory on your server where you installed WordPress, and then navigate to the directory of your theme. Usually that looks something like this: “/wp-content/themes/default” where “default” is your theme name.

That’s where you will create your custom page template file. Create a file called “cover_page.php” and add the following code to it:

 <?php
 /*
 Template Name: Cover Page
 */
 ?>

 <?php get_header(); ?>

 Here's my cover page!

<?php get_footer(); ?>  

more details read this

http://www.expand2web.com/blog/custom-page-template-wordpress/

like image 149
thecodedeveloper.com Avatar answered Nov 16 '22 15:11

thecodedeveloper.com


To add to the answers above, one good way is to open a text editor (I like notepad++) and copy and paste the content of the page.php file into a new file, including the php template name code in one of the previous examples.

Call it something unique (like custom_page1.php ) and upload this file via ftp to your active theme folder inside your wordpress install on your server. You can use filezilla for this or another FTP program.

Refresh your editor page in wordpress and you should see your template listed with the others on the right.

Now when you publish a page you can choose this template from the dropdown menu on the side panel.

like image 24
IanB Avatar answered Nov 16 '22 16:11

IanB


You can use the Page Template feature of wordpress to create a custom page.

like image 1
Shakti Singh Avatar answered Nov 16 '22 15:11

Shakti Singh