• Hey guys, I’m trying to remove the sidebar for a certain page on my site (https://www.outdoorvancouver.ca/events-calendar/). As you can see I managed to remove the “get_sidebar” stuff from the php file, but now there is just a blank space. How do I stretch the text area to make it fit the full screen now, (PS – I’m a noob with this, so the more details the better) Thanks!!!

    Karl

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter 794804

    no one can help?

    You’ll need create a new entry in your stylesheet and place the calendar in there.

    Make a copy of

    #content-box {
    margin-right:340px;
    }

    and change the margin-right to a lower value (or zero it out). Then change the php file so that the calendar uses that div style.

    You can mix and match, of course. If you check out https://www.worch.com/?page_id=59 for example, there’s a div class for the upper text that spans the entire page, and below that there’s two additional divs to create a conventional post and sidebar area.

    Thread Starter 794804

    Awesome, thanks for the help! but how do I change the php file so it uses that div style? (sorry, like i said i’m a total n00b).

    And for clarification: I go to the style.css under the theme editor, and add

    #content-box {
    margin-right:0px;
    }

    Can i add that anywhere to the stylesheet?

    Thanks again for any help

    Well, this could open Pandora’s Box because it might invalidate the styling *inside* content-box (= calendar contents), but you can try this:

    Make a copy of #content-box and rename it. Something like

    #content-box-full {
    margin-right:0px;
    }

    Doesn’t really matter where this goes, but right after #content-box sounds good.

    Then, in the php file find where it says
    <div class=”content-box”> and change it to <div class=”content-box-full”>.

    Upload the php and css and shift-reload the page (use shift to reload the entire page, other the cached stylesheet will most likely be used).

    That should work.

    Thread Starter 794804

    Ok, I’ll give that a try tonight when I get home from work and let you know how it goes. Thanks alot for the help!

    Karl

    Thread Starter 794804

    Ok, finally had some time to try it and… it worked!
    Was nervous about messing the the css and php files, but followed your instructions and everything seems to be working fine. Thank you for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removing Sidebar on Specific Page’ is closed to new replies.