Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is it possible to add a Page in WordPress, so that none of the header or the menus of the site appears on that page?

And also so that the stuff in sidebars that's on the rest of the site doesn't appear. And the stuff at the bottom of the page (there's a 'Leave a reply' form on the other pages.)

So on this site: http://richardclunan.com/ don't want any of the header handwriting or the 'hey there' / 'portfolio' / 'need copywriting' / 'etc' menu items to appear on one particular page, nor the side-bar sign-up box, nor the 'leave a reply' form. But I want all that stuff to appear on all other pages.

share|improve this question
add comment

3 Answers

up vote 5 down vote accepted

Create a custom Page Template, leave out the get_header(), get_footer(), and get_sidebar() calls in it, and put in your own html header/footer code in the Page template instead.

http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

share|improve this answer
add comment

Rich - If you create an HTML page (however you wish) called something.html, and drop it in the same folder as the wordpress install, then http://richardclunan.com/something.html will show that page.

I had a blog made of static pages before flipping to WP. The old pages appear fine if fould on old bookmarks or search engines. http://joetaxpayer.com/gold is an example, get rid of the ending /gold and you see the WP site is there.

share|improve this answer
add comment

you can create a new page template and associate it with that page.

on the page template, don't include the sidebar ( <?php get_sidebar(); ?>) and don't allow comments on that specific page, either by removing the call to the comment template, usually comments_template() or using the wp page admin.

the header and navigation is a bit more complicated but easily done by wrapping them in a conditional if( get_the_id() != '99' ) { ... } . Replace 99 with your page id surely.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.