WordPress.org

Ready to get started?Download WordPress

Forums

use of iFrame... i don't want the sidebar to show (8 posts)

  1. donjz
    Member
    Posted 9 years ago #

    I have a couple of pages that I want to use as iFrame. I want an external site (ie. Gallery) to load on my page. However, to view it properly, I have to get rid of the sidebar temporarily. How can I disable the sidebar when loading a page?

    Please help.

    Thanks.

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    What exactly do you mean by 'page' ?
    Do you definitely mean a 'page' as created by WP ? As opposed to a post ? This will determine any answer so we need to know :)

  3. donjz
    Member
    Posted 9 years ago #

    By 'page', I meant a 'page' created by WP.

  4. Mark (podz)
    Support Maven
    Posted 9 years ago #

    In that case, create a page template which loads just what you need it to. You can then make it include or exclude just what you need:
    http://codex.wordpress.org/Pages

  5. donjz
    Member
    Posted 9 years ago #

    i thought there was an easier way... thanks.

  6. Mark (podz)
    Support Maven
    Posted 9 years ago #

    No - that is easy ! Honestly ! If you want to give it a bash and post back, we'll help !

  7. jalenack
    Member
    Posted 9 years ago #

    To not include the sidebar, you'll want to use the is_page() function, something like:

    <?php if (!is_page()) { ?>

    <div id="sidebar">
    .....
    </div>

    <?php } ?>

    See http://codex.wordpress.org/Conditional_Tags for more info on the is_ functions.

  8. donjz
    Member
    Posted 9 years ago #

    ok, will try... will keep you guys posted. (/me crosses his fingers)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.