WordPress.org

Ready to get started?Download WordPress

Forums

replace page title with image (1 post)

  1. astima
    Member
    Posted 2 years ago #

    I want to replace my page title with an image. I know I need to use a loop (if statement) this is what I've got so far:

    <div class="active">
    <?php if ( is_front_page() ) { ?>
    <h1><?php the_title(); ?></h1>
    <?php } elseif {
    (is_page('19')) echo "<img src="images/Craftbrews_pagetitle.jpg" />";
    else ?><h1><?php the_title(); ?></h1>
    <?php } ?>
    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic