• How do I get my logo to link to my home page, correctly?
    I have the following code in my child theme’s header.php file but syntax checking says the a link I have around the logo can’t be included there. (Syntax checking also says rel=”home” isn’t allowed.)

    <hgroup>
    <h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
    <a href="https://events.stcwdc.org/index.php"><img id="site-logo" src="https://events.stcwdc.org/wp-content/uploads/chapter_logo_54pxtype-150x150.png" width="150" height="150" alt="STC Washington, DC – Baltimore Chapter logo" /></a>
    <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
    </hgroup>

    The hgroup is in the basic Twenty Eleven theme header.php file. Am I getting the error message because hgroup has been deleted from the HTML5 specs? If I put the logo line and the h2 lines in paragraphs, will that work?

  • The topic ‘How can I link my site logo to the home page correctly?’ is closed to new replies.