• Resolved strung out

    (@strung-out)


    Hey, I’m currently using the twenty-ten theme on my blog http://robots-and-spaceships.com/

    what i’d like to do is get rid of the site title and site tagline from the top of my page, and instead make the header image a clickable link to the home page. is this possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes, it is. You can do it something like…
    1. Open header.php file
    2. Look for the lines below and comment it out or delete it.

    <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
    <<?php echo $heading_tag; ?> id="site-title">
    <span>
    <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    </span>
    </<?php echo $heading_tag; ?>>
    <div id="site-description"><?php bloginfo( 'description' ); ?></div>

    3. Next, look for the line below…
    <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    change it to…
    <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" /></a>
    4. Save file and check your site.

    Thread Starter strung out

    (@strung-out)

    that worked perfectly, thank you very much 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Altering header’ is closed to new replies.