• (originally posted this in the wrong section – sorry)

    Hi

    Up until very recently I was using a wordpress theme that had an option built into it allowing you to remove the sidebar. Under the temeplate dropdown there was an option for ‘no sidebar’. This meant that the widgets on the right such as ‘pages’ ‘blogroll’ ‘categories’ ‘recent comments’ etc would disapear and the main area where you write your content/blog post stretched further to the right giving you more space for content.

    To give you an idea of what it looked like before here’s a screenshot

    http://img837.imageshack.us/i/beforez.jpg/

    Now, after I changed to the new theme where I can’t remove the widgets or the ‘sidebar’ it looks like this.

    http://img510.imageshack.us/i/afterb.jpg/

    I really like the look of the new theme and want to keep it so I was wondering if anyone has the technical knowledge to tell me how to remove the sidebar and make the area where the content goes stretch across to cover the space the sidebar previously occupied. If possible only for this one page on the website.

    If you need to see a live version of the site it is here: http://bit.ly/b0ij6W

    Any help would be very much appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • yeah if you know CSS and some php it is quite easy. Go to editor and open the Main page Template there you will see the code that calls for the sidebar, best to use a comment to take it out <!– at start of area you want removed and –> at end of area. DO NOT DELETE ANYTHING, commenting out is better as you may wish to change this in future.

    Thread Starter yeahbutno

    (@yeahbutno)

    I only know the basics unfortunately which is not enough as there are quite a few mentions of sidebar (20+). I don’t know specifically which part I should comment out.

    Thread Starter yeahbutno

    (@yeahbutno)

    <!–<?php get_sidebar(); ?>

    No change. Sorry but I’m a bit clueless. All it did was insert a <!– above the sidebar. Weird.

    Thread Starter yeahbutno

    (@yeahbutno)

    Edit: I reread your post and managed to comment it out – forgot to put the –> at the end! Brilliant. Thanks.

    The only issue now is that the main area needs to be stretched accross to cover the area the sidebar previously covered. Any tips?

    I kept the sidebar on the main index page – its only on subpages I removed it if that’ll help anyone find a solution. So its only on page.php I need to stretch the main area where the writing goes – not index.php

    The main page size will be in your CSS file, simply find where it is and then increase the width and it should be okay. Do it in increments until you get the correct size.

    Should be Homepage:

    /************************************************
    * Homepage *
    ************************************************/

    #homepage {
    float: left;
    width: 610px;
    margin: 0px;
    padding: 0px;
    }

    Change the width to suit.

    Hope it helps

    Jim

    Thread Starter yeahbutno

    (@yeahbutno)

    Well, I spent an hour going through the CSS file with trial and error and I finally found it. For the benefit of anyone who googles for this topic. Go to the editor in your main control panel and open the stylesheet. style.css. Search for

    div#main{

    Underneath that there is a ‘width’ option. Changed that to 950. Only problem is I now need to remove the sidebar from the homepage as this widens the whole website and not just page.php as I originally intended. If a nice person can figure out to only make it apply to page.php that would help a lot as I want the sidebar to stay on the homepage.

    Thread Starter yeahbutno

    (@yeahbutno)

    Didn’t see your post there until after I posted jim. whoops

    Comment out the siderbar in your CSS file, start with /* and then at the end put */

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Removing the sidebar – Pyrmont V2’ is closed to new replies.