Viewing 9 replies - 31 through 39 (of 39 total)
  • Thread Starter dcloud

    (@dcloud)

    Hm, seems you have to make your own template files with that plugin. Oh well, onward….

    Hm, seems you have to make your own template files with that plugin. Oh well, onward….

    But now you know what to do. ??

    Simply copy “single.php”, rename it “single-one-column.php”, add the PHP header block as specified in the Plugin instructions, and then make the modifications I suggested for “single.php”, above.

    Thread Starter dcloud

    (@dcloud)

    Chip, I’m going to give this a shot. Thanks for all your help.

    Thread Starter dcloud

    (@dcloud)

    I have another question. I installed the plugin and I copied the single.php file from my child theme and renamed it. The header block that the plugin describes is…

    <?php
    /*
    Template Name Posts: Snarfer
    */
    ?>

    In my newly renamed single file it has this at the top…

    <?php
    /**
     * The Template for displaying all single posts.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */

    Where should I insert the plugin header code?

    Every bit of the original header block from “single.php” can be removed. It is superfluous.

    Just replace it with the header block recommended by the Plugin, e.g.:

    <?php
    /*
    Template Name Posts: One-Column Post
    */
    ?>

    Thread Starter dcloud

    (@dcloud)

    Thanks. I uploaded my new php file and I made the changes to the CSS you mentioned previously (remove sidebar code and width), but it hasn’t changed the layout of the page. It is still sitting to the left with a blank spot on the right where the sidebars used to be.

    Thread Starter dcloud

    (@dcloud)

    Oops, nevermind. This has screwed up all the other pages on my site. So what I’m going to do now is copy over all the tutorial posts to their own “pages” and then apply the one column template to those.

    Unfortunately, even though I put back the codes I removed the one column page isn’t going across the whole page. Must have missed something.

    Thread Starter dcloud

    (@dcloud)

    I figured it out. For some reason the one column in the CSS was set at 640px. Unless that’s what it is normally. I dunno. I have changed it here and it’s cool now.

    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.

Viewing 9 replies - 31 through 39 (of 39 total)
  • The topic ‘Can you have a one column for posts?’ is closed to new replies.