0

In Wordpress, when creating a page, it shows some options for Template under Attributes, such as: Default, Links, One column no sidebar, etc.

Is there a way to add more custom templates to show up here? If so, how?

2

All you need to do is just create a new file in your theme root directory. This file must start with following code:

<?php 
/**
 * Template Name: No Sidebars
 */ 

Name your file, for example, page_nosidebars.php and then WP will add No Sidebars template to available templates list.

There is nice article about it Creating Custom Page Templates. I think it will help you to create your own.

1
You can create your own template for pages. Below link shows the example of creating template.

Url :- http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

create a php file and save in active theme folder.

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

i think this may help u for creating template.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.