• Hello,

    On this site http://www.good-skin.com there are two h1 tags not only on the home page, but also on each post.

    1 – On posts, there is an H1 “post navigation” inserted on every post. For Example, http://www.good-skin.com/gold-good-for-your-skin/. I cant find the file where this code is located in my theme.

    2 – The logo is an h1 tag, which I don’t get at all. Here is the code in customize.php:

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    <h1 class="site-title ' . esc_attr( $header_class ) . '"><a href="' . esc_url( home_url( '/' ) ) . '" title="'. esc_attr( get_bloginfo( 'name', 'display' ) ) . '" rel="home">';
    	if ( $header_class != 'display-title' ) {
    		echo '<img alt="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" src="' . esc_attr( $logo ) . '" />';
    	}
    	if ( $header_class != 'display-logo' ) {
    		echo esc_attr( get_bloginfo( 'name' ) );
    	}
    	echo '</a></h1>

    I changed the “h1” to an “h6”, but this is not best practice. Also, erasing the h1 messes up the alignment of the logo, probably due to a css class….

    Please Help!

  • The topic ‘2 H1 Tags.. Please Help!!’ is closed to new replies.