tag on homepage
-
I have the following code in my loop-page and want to stop it displaying the h1 on my homepage (it is currently positioned between the horizontal menus and the first pictures).
Once I have done that I would like to display h1 in the header instead where it currently reads ‘walking holidays & more’ this is displayed via a widget area. Any help / comments gratefully received.
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( is_front_page() ) { ?> <h1><?php the_title(); ?></h1> <?php } else { ?> <h1><?php the_title(); ?></h1> <?php } ?> <div class="entry-content"> <?php the_content(); ?> <?php //wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'colletts_holidays' ), 'after' => '</div>' ) ); ?> <?php //edit_post_link( __( 'Edit', 'colletts_holidays' ), '<span class="edit-link">', '</span>' ); ?> </div><!-- .entry-content --> </div><!-- #post-## --> <?php endwhile; // end of the loop. ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘tag on homepage’ is closed to new replies.