• I am having trouble getting our header image to take people to the homepage of our website. Currently when I mouse over the header the link displayed is

    blog.northstarflags.com/www.northstarflags.com

    I need it to take people to http://www.northstarflags.com. I have looked up and tried several solutions that involved adjusting the header.php, but so far nothing works. Can anyone point me in the right direction on how to fix this?

    Most suggestions involve altering this chunk of the header.php:

    <div id="header">
    		<div id="masthead">
    			<div id="branding" role="banner">
    				<?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>

    I have tried inserting “onclick” commands into the “header” and “branding” div tags and replacing the “href” with our website’s address.

    Any help or suggestions will be greatly appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Matt Knowles

    (@aestheticdesign)

    You have some problems in your code as it is on the page right now. The page displays part of an H1 tag. There is also a typo in the URL for the header.

    It goes to http://www.nortstarflags.com (missing the h)

    In the code you listed above, change

    href="<?php echo home_url( '/' ); ?>"

    to

    href="http://www.northstarflags.com"

    Thread Starter NSFGraphics

    (@nsfgraphics)

    Thanks for the reply. Where should I go to fix the h1 tag? Is that in the header?

    Thread Starter NSFGraphics

    (@nsfgraphics)

    Here is the relevant chunk of the header.php code currently in play:

    `<div id=”wrapper” class=”hfeed”>
    <div id=”header” >
    <div id=”masthead”>
    <div id=”branding” role=”banner”>
    <?php $heading_tag = ( is_home() || is_front_page() ) ? ‘h1’ : ‘div’; ?>
    <?php echo $heading_tag; ?> id=”site-title”>
    <span>
    ” rel=”home”><?php bloginfo( ‘name’ ); ?>
    </span>
    </<?php echo $heading_tag; ?>>
    <div id=”site-description”><?php bloginfo( ‘description’ ); ?></div>’

    The only thing that works is the “NorthStar Flags” text link.

    Matt Knowles

    (@aestheticdesign)

    It looks like you got both issues resolved when I looked at the site today.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Twenty Ten Header Link Trouble’ is closed to new replies.