INORHAR
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Themes and Templates
In reply to: How do I take the header off of one page template?This one did nothing:
<?php /* Template Name: Fullwidth Page <style>#header{display:none;}</style>. */ ?> <?php get_header(); ?> <?php if (! $page->ID == 245/2 ) { get_header(); } ?> <!--Start Contetn wrapper--> <div class="grid_24 content_wrapper"> <!--Start Fullwidth--> <div class="fullwidth"> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <h1> <?php the_title(); ?> </h1> <?php the_content(); ?> <?php comments_template(); ?> <!--End comment Section--> </div> <div class="bigshadow"></div> <!--End Fullwidth--> <?php endwhile;?> </div> <!--End Content wrapper--> <div class="clear"></div> </div> <?php get_footer(); ?>And I tried this one but the page went super big but the header was off
<?php /* Template Name: Fullwidth Page <style>#header{display:none;}</style>. */ ?> <?php if (! $page->ID == 245/2 ) { get_header(); } ?> <!--Start Contetn wrapper--> <div class="grid_24 content_wrapper"> <!--Start Fullwidth--> <div class="fullwidth"> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <h1> <?php the_title(); ?> </h1> <?php the_content(); ?> <?php comments_template(); ?> <!--End comment Section--> </div> <div class="bigshadow"></div> <!--End Fullwidth--> <?php endwhile;?> </div> <!--End Content wrapper--> <div class="clear"></div> </div> <?php get_footer(); ?>Forum: Themes and Templates
In reply to: How do I take the header off of one page template?Where am I putting the conditional statement? Am I taking this out <?php get_header(); ?>
I tried putting the conditional statement in and the header was still there and then I took the portion above out with the condiotional statement in and the page went completely haywire and too big. I want the page to look the exact same but without the header showing. What am I doing wrong?
Viewing 2 replies - 1 through 2 (of 2 total)