I'm creating a new Page Template.
I want to change margins, fonts, font sizes, and things like that.
I don't know if I've done things right. Is the following process that I've followed sound?:
I created a new file 'salespagetemplate.php' and placed this in the active theme (twentyeleven-child).
In the file 'salespagetemplate.php', I have the following code, and only this code:
<?php /** * Template Name: Salespage */ wp_enqueue_style( 'my-page-template', get_template_directory_uri() . '/css/page-template.css' ); ?> <div id="primary"> <div id="contentwide" role="main"> <?php the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> </div><!-- #content --> </div><!-- #primary -->
(some of that code isn't appearing in this post -- don't know how to make it appear.)
- I created a new file 'page-template.css', which is referred to in the code above, and which if I understand correctly, I can edit to change css for the page template.
And, in case I'm supposed to be referencing any of the existing files and am doing so incorrectly, here is the list of file names I have in the active theme folder:
content.php functions.php page.php salespagetemplate.php single.php style.css page-template.css

/css/page-template.css, so either put it in the subfoldercss, or change the path! You really should have continued the convo on your original Q rather than posting a new one. – TheDeadMedic Jul 31 '12 at 22:23get_stylesheet_directory_uri()instead ;) – TheDeadMedic Jul 31 '12 at 22:25