WordPress.org

Ready to get started?Download WordPress

Forums

Elegant Grunge
Home Page Link When Clicking Banner (2 posts)

  1. omgdyl
    Member
    Posted 2 years ago #

    Hey guys,

    I'm trying to get my custom header image to link back to my default home page. I'm assuming it has to do with this chunk of text but I can't get anything working, thanks!

    `<div id="header">
    <div>
    <?php if ( is_front_page() || is_archive() || is_category() || is_tag() ) { ?>
    <h1><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    <?php } else { ?>
    <h2><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h2>
    <?php } ?>
    <p id="blog-description"><?php bloginfo( 'description' ); ?></p>
    </div>
    </div>`

    http://wordpress.org/extend/themes/elegant-grunge/

  2. helenbakker
    Member
    Posted 1 year ago #

    I tried everything myself, but it will not work. I am actually at a point where I am considering moving to a different theme.
    I had to use funny tricks to remove the top menu because it would not show what I want it to show, and now this.
    Sort of fed up, and no answer anywhere :(.

    Maybe you found a solution yet?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic