Make a One-Column Template from a Two-Column Template
-
Hello,
I am new to WordPress (hard to guess, huh?) and am setting up my first site using the theme “Unnamed Lite 1.0” by Xu Yiyang. I really like this theme, and am happy with the way it looks: http://thehorsemansagent.com/wptest/I am trying to create a Template that I can use for my static Pages. I want this Template to be available for creating Pages that span the entire width, with no sidebars whatsoever.
I have copied/re-named some of the existing pages from the theme, and have tried to alter them to create the template that I am seeking. The pages I have tried to alter are:
Theme:
Page with Comments Page Template (page-comments.php)Style Sheets:
two_column.css (two_column.css)
Stylesheet (style.css)I am having no luck, and am obviously missing something fundamental. If anyone can help me I can assure you that I am both a fast and appreciative learner!
Thank you!
-
You’d need to:
1. Read http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
2. Remove the call the get_sidebar() from the new page template.
3. Edit
<div id="primary-content">
to something like<div id="wide-content">
in the new page template.4. Add:
#wide-content { display:inline; line-height:1.6em; margin:0 1.5%; overflow:hidden; text-align:left; }
to style.css
Thank you so much, esmi!
I have been reading quite a lot during the past week fairly slowly and methodically, but like everyone probably does– I sometimes get ahead of myself and want to “jump ahead” a little bit in the lessons.
Thank you very much for your time, the link, and the code ..!!
Esmi,
It worked perfect! Here is the link:
http://thehorsemansagent.com/wptest/big-wide-page
Thanks again so much! Now I need to go to the bottom of that page and get rid of that “Comments are currently closed.” banner, and the “Search blog archives” box.
But in the meantime, I can at least start creating all of the full-width static Pages for the site.
Thanks again for taking the time…
Thank you again for your time, esmi!
I had just deleted that call on the new php file created for full-width static Pages, but this is so much cleaner and gives me the flexibility of having comments at least available on a rare occasion when I might want them on a static full-width Page.
Thank you!
- The topic ‘Make a One-Column Template from a Two-Column Template’ is closed to new replies.