• Here is the statment

    <?php if(is_home()) : ?>
    <h1><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1>
    <?php else : ?>
    <span id="blogTitle">
    <a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a>
    </span>
    <?php endif; ?>

    My setup is that in general setting i Have selected in general settings a page to be my static homepage.. It is called home…

    I am putting this code in the header.php file.

    This is supposed to make the title of my blog only to appear in h1 tags on that page, but its not working so I guess the if statement is wrong.

    What would be the croeect if statment for that?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘H1 Blog Title HAck If Statemtn confusion’ is closed to new replies.