• *newbie alert, pelase go easy*

    Hi

    I am using the wpcrunchy newspress theme and have inserted my own logo as the header using the option newspress gives you in the appearance section.

    What I would like to do is make it so that my logo is a hyperlink to my homepage, but I’m not sure exactly what I need to put in and where.

    The code below is from the header.php file and as far as I can tell, is the part that I need to change.

    if(get_option("newspress_customlogo") == "") : ?>
    				<div id="site-description"><?php bloginfo("description"); ?></div>
    				<div id="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></div>
                    <?php else : echo '<img src="' . get_option("newspress_customlogo") . '" border="0" />'; endif; ?>
    			</div><!-- #branding -->

    I’d appreciate some help very much!

    Thanks

Viewing 1 replies (of 1 total)
  • Try with this:

    if(get_option("newspress_customlogo") == "") : ?>
    				<div id="site-description"><?php bloginfo("description"); ?></div>
    				<div id="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></div>
                    <?php else : echo '<a href="' . esc_url(home_url('/')) . '"><img src="' . get_option("newspress_customlogo") . '" border="0" /></a>'; endif; ?>
    			</div><!-- #branding -->

    Is the same code, but only add <a href="' . esc_url(home_url('/')) . '"> before “<img>” tag.

    Be careful on paste, your code is incomplete

    ??

Viewing 1 replies (of 1 total)
  • The topic ‘Making logo clickable’ is closed to new replies.