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.