Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Possible Duplicate:
Correct process for a new Page Template?

I created a page template following these instructions: http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

I'm having difficulty figuring out how to apply margins, fonts, and font sizes to the new page template.

So I'm thinking perhaps there's another way to do it: if I can make the new template so it displays Pages exactly the same as my active template (twentyeleven-child), I can then remove things and change things -- I might find it easier this way to locate the things to remove and change rather than figure out how to build the Page Template from scratch.

Is this a sensible approach?

If it is, would I copy all the text in content.php to my new page template file, and then edit things both in the new page template file and in style.css ?

share|improve this question

marked as duplicate by Rarst Jul 31 '12 at 23:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

1 Answer 1

up vote 1 down vote accepted

For custom templates, I tend to use the default page.php, make any changes to the HTML (if need be), and enqueue an overriding stylesheet before get_header():

/**
 * Template Name: My Page Template
 */

wp_enqueue_style( 'my-page-template', get_template_directory_uri() . '/css/page-template.css' );
get_header();

Everything'll function like a normal page, except now you have a stylesheet for declaring any unique rules for this particular template.

share|improve this answer
add comment

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