I made a custom design for my site. On my header i put my navigation so everytime i call the header the navigation will be called to, so that i would not be calling it all the time.
But now i have a problem, on my 404 PAGE , i don't want to include the navigation, but if i don't include the header the themes won't play. SO how can i do this?. Any ideas is greatly and highly appreciated.

link|improve this question
feedback

1 Answer

up vote 5 down vote accepted

Put <?php if( !is_404() ) : ?> before your navigation and <?php endif; ?> after your navigation and VIOLA! It's gone!

link|improve this answer
Yeah, And that was Awsomely greatly and highly APPRECIATED. – tomexsans Feb 17 at 14:53
1  
Even shorter: ! is_404() and wp_nav_menu(); – toscho Feb 17 at 15:06
feedback

Your Answer

 
or
required, but never shown

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