• Resolved Scott Foshee

    (@scott-foshee)


    Decode seems to automatically set the link of my custom header image to the splash page of the site instead of the home page, where I need it to point. I see no settings for this anywhere in options, yet I see the link in Firebug. I just don’t know how to change it.

    Thank you for any ideas.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Scott Foshee

    (@scott-foshee)

    Here is the code in the Custom Header file

    <div class="decode-custom-header-preview site-branding">
    
    	<?php if ( get_header_image() != '' ) : ?>
    		<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    			<img class="site-logo" src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="100%" alt="" />
    		</a>
    	<?php endif; ?>
    
    	<?php if ( get_theme_mod( 'show_site_title', true ) == true ) : ?>
    		<h1 class="site-title">
    		<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    		</h1>
    	<?php endif; ?>
    Thread Starter Scott Foshee

    (@scott-foshee)

    Just in case, here is what I think to be the applicable code in the regular header file:

    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <title><?php wp_title( '|', true, 'right' ); ?></title>
    <link rel="profile" href="https://gmpg.org/xfn/11">
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    <?php if ( get_theme_mod( 'favicon_image', '' )) { echo '<link rel="icon" href="' . esc_url( get_theme_mod( 'favicon_image', '' ) ) . '">'; } ?>
    <?php if ( get_theme_mod( 'favicon_image', '' )) { echo '<link rel="apple-touch-icon-precomposed" href="' . esc_url( get_theme_mod( 'favicon_image', '' ) ) . '">'; } ?>
    
    <?php tha_head_bottom(); ?>
    <?php wp_head(); ?>
    </head>
    Thread Starter Scott Foshee

    (@scott-foshee)

    OK, I finally figured this out through trial and error. In the Header.php file (not custom header.php) I replaced this code:

    <?php echo esc_url( home_url( '/' ) ); ?>

    right under <?php if ( get_header_image() != '' ) : ?>

    with this code:

    https://YOURSITEADDRESSHERE.com

    Be sure to replace everything inside the quotation marks, but leave the quotation marks!

    Hi there

    New member and I’m currently using this theme. I’ve got a problem where the Favicon for the site I started is the same as my ISPs and I can’t get rid of it.

    I’ve uploaded a 16×16 favicon.ico file to the images section, and I’ve tried to edit the header.php – the code above – but no code I use seems to stop the ISP favicon from showing up.

    Is there any coder out there able to help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to Change Header Image Link’ is closed to new replies.