Hidding the content on the frontpage
-
I am using the theme Filtered and the frontpage and every other page has as an area for content in the main body. I am trying to have the div “main” not appear in the front page but i do want it to appear in every other page. I assume this needs to be done in page.php. But what is the code, I’m a newbie so please help.
code:
<?php get_header(); ?> <?php if(!is_front_page()):?> <div id="pageHead"> <h1><?php the_title(); ?></h1> </div> <?php endif; ?> <div id="main" class="clearfix"> <div id="content" class="twoThird clearfix"> <?php while (have_posts()) : the_post(); ?> <div <?php post_class('clearfix'); ?>> <?php the_content(); ?> </div> <?php comments_template('', true); ?> <?php endwhile; ?> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>
- The topic ‘Hidding the content on the frontpage’ is closed to new replies.