Viewing 15 replies - 1 through 15 (of 25 total)
  • thelazygeisha

    (@thelazygeisha)

    @rickonline

    You need to create a template of a blank page without the sidebar and add it into your theme files.

    Then, when you re-publish that particular page, you need to change the template.

    Thread Starter rickonline

    (@rickonline)

    How do I create a template of just a blank page?

    thelazygeisha

    (@thelazygeisha)

    @rickonline

    The best suggestion for me to make here is for you to contact the theme’s author for further mods. I mean, I’d hate to be responsible for giving you the shovel here! Unless someone else can offer a better suggestion.

    Good luck!

    – nina

    Thread Starter rickonline

    (@rickonline)

    so is it not easy to simply take off the side bar?

    It depends on your theme.

    jd2066

    (@jd2066)

    You can also try the plugin at http://www.nexterous.com/scripts/pagesidebars.php to have a different sidebar for a certain page.

    Yemoonyah

    (@yemoonyah)

    I had the same problem. What you do is create a new file in your template folder, then copy page.php and paste it into the new folder. Then find the line that says something about ‘get sidebar’. Delete it (be careful if you have more than one sidebar). Then create the page you need in your admin, go to that page, scroll down and change the template to the new one you just created.Done!

    Thread Starter rickonline

    (@rickonline)

    Thanks – so do you create the new file on your desk top, and then just ftp it in?

    Can the new file just be a text file?

    moshu

    (@moshu)

    Just read the documentation: Pages#Page_Templates

    Thread Starter rickonline

    (@rickonline)

    Ok so I read this but I’m still confused. I’m trying to make a blank page, and then copy code to it, and then remove the sidebar info?

    thelazygeisha

    (@thelazygeisha)

    @rickonline

    You really need to have an understanding of formatting php and writing php enabled pages here in order to make this work.

    Without knowing your theme; there is likely something called single.php in your theme files (or something else as someone else suggested).

    When you create a new page within WordPress, you’ll see a drop down dialog box which calls for you to select a template. Have you actually verified that your theme doesn’t already contain this option for you? If it doesn’t, you’re going to have to create the template yourself, or, as I suggested, contact the theme’s author for further mods.

    What you have to understand is that there is no one way to do this… every theme is different, and there could be dependencies in there which you’re unaware of.

    Tho, I’m a big believer that you learn by mistakes, so, you could start here.

    On Edit: You’re also going to need the software tools necessary to write php pages.

    Yemoonyah

    (@yemoonyah)

    thelazygeisha is right. It very much depends on your theme.
    What I described above is what worked for me.
    Maybe you could try this:
    Go to your theme files in admin, look at page.php (or maybe singlep.hp)and see if you find the part about get_sidebar. Copy it and then delete it, go to your site and see if the sidebar is gone. If it worked, put the code back in and then follow the steps I mentioned above. I created the file (html)in my c-panel file manager (host).

    moshu

    (@moshu)

    What you have to understand is that there is no one way to do this

    Actually, that’s not true.
    There is only one way to do it: you read the documentation and following it step by step you create additional Page templates.
    The default Page template is page.php.
    Save it as whatever.php AND add the lines at the top as described in the tutorial in the Codex (linked above). Upload it to your theme folder.
    Write a new Page (in admin > Write > Write Page) and select this template for it.

    Now, if you want your own code in the custom Page template: remove the Loop and replace it with your own code. That’s it.
    Study the default theme and see the special Page templates included with it: archives.php (with S!), links.php.

    Yemoonyah

    (@yemoonyah)

    true…forgot about the lines at the top you have to add.
    Thanks for clearing this up.

    thelazygeisha

    (@thelazygeisha)

    @moshu

    I stand corrected on that point, however, wasn’t that easier than:

    Just read the documentation:

    Maybe it’s me, it probably is, but the RTFM vibe always puts me off this place, and perhaps my caution in handing people the shovel is misplaced too.

    Every once in a while I’ll try to help, but maybe even that’s become too much trouble than it’s worth.

    But, that’s it for today. TTFN.

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘How do I take the sidebar off on just this page?’ is closed to new replies.