Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 112476

maslerdanch on "tag on homepage"

$
0
0

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.

Link to page

<?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 all articles
Browse latest Browse all 112476

Trending Articles