• Resolved nosferatu999

    (@nosferatu999)


    I’m looking to create full-page posts without the sidebar but I’d like to display the sidebar as normal on the front page. I can choose the full-width template for pages but I’m trying to do the same for posts. I’ve removed the call on the sidebar in the single.php which removes the sidebar but the width of the content remains and there’s just white space where the sidebar was. If I change the #content width in the base settings, this affects the front page as well. Any ideas. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • I was trying to figure this out myself tonight. Here’s what I came up with:

    In style.css, under Main Content, you’ll need something like the following:

    #content .post,
    #content .page{
    overflow:hidden;
    margin-bottom:15px;
    width: 930px;
    }

    Adding a width of 930px or so will spread your content over the full width, but you’re right that that will effect the home page as well. Here’s how you correct that. Also under Main Content, you’ll need something like this:

    #posts-list .post{
    overflow:hidden;
    padding-bottom: 25px;
    margin-bottom:25px;
    border-bottom: 1px dotted #3e4348;
    padding-top: 25px;
    width: 620px !important;

    By doing this, I was able to remove the call to sidebar from both my single.php and my page.php and spread the content over the full width, without effecting the home page.

    Thread Starter nosferatu999

    (@nosferatu999)

    Top man Scott. That works brilliantly. Many thanks for your reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Full page template for posts’ is closed to new replies.