Homepage Header Text
-
Hi there,
Could someone please help me with the following?I would like to place some intro text and an image to appear above my posts on the hompage of my site (www.bicentre.org.uk). I understand I need to use the is_home() tag, however I am unsure as to where this needs to be placed. My site has the following index.php
<?php
include_once(‘gravatar.php’);
get_header();
?><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<is_home()><div class=”post”>
<h3 class=”storytitle” id=”post-<?php the_ID(17); ?>”>” rel=”bookmark”><?php the_title(); ?></h3>
<div class=”meta”><?php _e(“Filed under:”); ?> <?php the_category(‘,’) ?> — <?php the_author() ?> at <?php the_time(‘g:i a’) ?> on <?php the_time(‘l, F j, Y’) ?> <?php edit_post_link(__(‘Edit This’)); ?></div><div class=”storycontent”>
<?php the_content(__(‘(Read on …)’)); ?>
</div><div class=”feedback”>
<?php wp_link_pages(); ?>
<?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
</div><!–
<?php trackback_rdf(); ?>
–></div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p>
<?php endif; ?><?php posts_nav_link(‘ — ‘, __(‘« Previous Page’), __(‘Next Page »’)); ?>
<?php get_footer(); ?>
Any ideas?
- The topic ‘Homepage Header Text’ is closed to new replies.