• Resolved rforster

    (@rforster)


    Hi all,

    Is there a simple way to disable all my sidebar stuff on one page? I just need to have the header stuff intact for basic navigation to include an iframe.

    I just did all of my updates and have never looked for anything like this in my admin panel. Any direction would be appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • In your page template (see Template Hierarchy) you could use the Conditional Tag, is_page with get_sidebar().

    Thread Starter rforster

    (@rforster)

    Thanks. I forgot about templates as I have played with them for a while. I took the index file from the code blue theme i am using, took out the left and right side bar includes and saved it as template-no-sidebars.php. Uploaded to my theme directory.

    I looked at page.php and could make the same like page-no-sidebars.php but where in my page edit screen would I make the selection to call page.php, page-no-sidebars.php, template-no-sidebars.php???

    Wasn’t there a control in past version to speciify what template you wanted to use for a page? I didn’t really get the conditional thing.

    Thread Starter rforster

    (@rforster)

    Getting closer. Edited page.php with:
    <?php
    /*
    Template Name: NoSidebars
    */
    ?>

    at the very top. Went to my edit screen and it was under attributes. Selected and clicked update. I have it as a main page if that matters.

    Still have sidebars. <shrug>

    Thread Starter rforster

    (@rforster)

    I had saved this file and moved the page-no-sidebars.php to the root. Also to the folder with my theme as indicated on the template how to here:

    Thanks for any help.

    Thread Starter rforster

    (@rforster)

    So I also saved this file as NoSidebars.php to match the template name from above. Put it in the correct them folder but still no love.
    :~/

    Thread Starter rforster

    (@rforster)

    Not resolved but posted a new topic in themes and templates.

    In case someone stumbles across this post (like I did), found a great walkthrough here

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Disable Sidebar on one page?’ is closed to new replies.