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.
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 :)
By 'page', I meant a 'page' created by WP.
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
i thought there was an easier way... thanks.
No - that is easy ! Honestly ! If you want to give it a bash and post back, we'll help !
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.
ok, will try... will keep you guys posted. (/me crosses his fingers)