TwentyEleven custom page template for full width page
-
Hi!
I am trying to create a custom page template for a full-width page. I do not want to affect ANY other page templates in the theme.
I’m working with a child theme, and I’ve created a page template already. I have tried:
–Changing the page template file ‘<div id=”content”>’ to ‘<div id=”content-fullwidth” ‘, and then adding this to the css:
#content-fullwidth {
margin: 0 0 0 0;
width: 100%;
}But my content is still not filling the page–it’s sitting to the right and down from where I think it should be.
The page I’m working on is https://www.mechanicspeak.com/test-page-2/. Using firebug, the element my content is in looks like ‘entry-content’, not ‘content’ But the above instructions were from a tutorial on the web, and I don’t know how to alter ‘entry-content’ for a page template.
And if I’m working with a page template, why wouldn’t I want to just set the parameters inside the page template file, instead of calling something from the css?
Thanks for any insight!
- The topic ‘TwentyEleven custom page template for full width page’ is closed to new replies.