• Hi,

    My website’s front page currently does not have an H1 tag, but in order to optimize it for SEO, it needs to have one. How do I add an H1 tag for the blog logo on just the front page and not on the other pages and articles? Currently, the PHP is as follows:

    <div class="header-middle clear">
                        <div class="logo-header <?php if ( !get_option('unspoken_logo_top') && !get_option('unspoken_logo_text') ) echo 'offset' ?>">
                            <a href="<?php bloginfo( 'url' ); ?>">
                            <?php
                                if ( get_option('unspoken_logo_text') ) {
                                    echo get_option('unspoken_logo_text');
                                } elseif ( get_option('unspoken_logo_top') ) {
                                    if ( function_exists('unspoken_get_logo') ) echo unspoken_get_logo(get_option('unspoken_logo_top'));
                                } else {
                                ?>
                                    <?php
                                    if (get_option('unspoken_skin') && get_option('unspoken_skin') != 'default') {
                                        echo '<span style="background: url(' . get_bloginfo('template_url') . '/skins/unspoken-' . get_option('unspoken_skin') . '/images/logo-header.png) 0 0 no-repeat;"></span>';
                                    } else {
                                        echo '<span style="background: url(' . get_bloginfo('template_url') . '/images/logo-header.png) 0 0 no-repeat;"></span>';
                                    }
                                    ?>
                                <?php } ?>
                            </a>
                        </div>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show H1 Tags for Logo/Blogtitle Only on Homepage/Front Page’ is closed to new replies.