WordPress.org

Ready to get started?Download WordPress

Forums

Show H1 Tags for Logo/Blogtitle Only on Homepage/Front Page (6 posts)

  1. AutoKwame
    Member
    Posted 12 months ago #

    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>
  2. AutoKwame
    Member
    Posted 11 months ago #

    Can someone please help me?

  3. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    What theme is that?

  4. AutoKwame
    Member
    Posted 11 months ago #

    Unspoken by WPShower. You can view the demo here:

    http://wpshower.com/themes/unspoken/

  5. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    Have you asked them? These forums don't support commercial themes so they'd be the ones to help you with this kind of theme-specific question.

  6. AutoKwame
    Member
    Posted 11 months ago #

    I have tried, but they won't let me access the private forum area, even though I have acquired two premium themes from them.

Reply

You must log in to post.

About this Topic