Pretty new to all this WordPress stuff, but found this thread quite useful. I was looking for a way to make selected posts appear without the sidebar (using a twentyten child).
I installed the “Custom Post Template” plugin and ended up here to find out just what to do, but I may have found an easier way to make it all work.
I went through the process described by Chip Bennett and found it very helpful. However I wasn’t sure about the <div id="container">
line in my new single-one-column.php file, as the child stylesheet I use still has the -240px setting to allow room for the sidebar, which would make sidebarless posts appear left of center and narrower than the available space.
To get around this potential issue, I modified the line in my single-one-column.php file to read: <div id="container" class="one-column">
and then added a new “class” to my style.css in my child theme, as follows:
#container.one-column {
float: left;
margin: 0 0 0 0;
width: 100%;
}
I put this directly under the existing #container bit (the one with the -240px in it) and it seems to work perfectly.
Just thought others finding this thread may find this extra bit of advice useful.
Cheers, Dave.