Header hyperlink gone grazy!
-
Hi everyone,
I was trying to get my headerimage to link to an external site. For testing purposes I set this site to be google. I thought I managed to do so correctly but now everywhere I click on my website leads to google, unless it’s already linked to something else. So for example, a menutab or a youtube video is still clickable, but everywhere else I click now redirects me to the external site (in my example, google)
My header.php was very different from other examples I’ve found on this forum, so I propably put the code for the link in the wrong place in ‘header.php’. Could anyone help me out? I’d be very grateful, I’m an extreme novice with php but I’m willing to learn.. 🙂 Thanks in advance.
Here’s a link to my site and below you’ll find the contents of my header.php
Link: http://www.dereisgenoot.nl<?php /** * @package WordPress * @subpackage Matala */ ?> <!DOCTYPE html> <!--[if IE 7]> <html id="ie7" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 8]> <html id="ie8" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 9]> <html id="ie9" <?php language_attributes(); ?>> <![endif]--> <!--[if !(IE 7) | !(IE 8) | !(IE 9) ]><!--> <html <?php language_attributes(); ?>> <!--<![endif]--> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <title><?php wp_title(); ?> <?php bloginfo( 'name' ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <!--[if lt IE 9]> <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> <![endif]--> <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="header"onclick="location.href='http://google.com';" style="cursor: pointer;"> <div id="headerimg"> <div id="page" class="hfeed"> <div id="wrapper"> <header id="branding" role="banner"> <hgroup> <h1 id="site-title"><span><a>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1> <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2> </hgroup> <nav id="access" role="navigation"> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> </nav><!-- #access --> </header> <!-- #branding --> <div id="inner-wrapper"> <div id="main">
The topic ‘Header hyperlink gone grazy!’ is closed to new replies.