Support » Theme: Expound » Turning the header into a link to a page

  • Resolved lally1989


    Hi guys, Im having a nightmare putting a link in my header to a particular page, Ive read and searched everywhere, but nothing seems to work.

    Apparently I should be using code along these lines in the header.php:
    <div id="headerimg" onclick="location.href='';" style="cursor: pointer;">

    but to no avail.

    The code in the header.php is:

     * The Header for our theme.
     * Displays all of the <head> section and everything up till <div id="main">
     * @package Expound
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title><?php wp_title( '|', true, 'right' ); ?></title>
    <link rel="profile" href="" />
    <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>
    <?php wp_head(); ?>
    <body <?php body_class(); ?>>
    <div id="page" class="hfeed site">
    	<?php do_action( 'before' ); ?>
    	<header id="masthead" class="site-header" role="banner">
    		<div class="site-branding">
    			<div class="site-title-group">
    				<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>
    				<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    		<nav id="site-navigation" class="navigation-main" role="navigation">
    			<h1 class="menu-toggle"><?php _e( 'Menu', 'expound' ); ?></h1>
    			<div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'expound' ); ?>"><?php _e( 'Skip to content', 'expound' ); ?></a></div>
    			<?php wp_nav_menu( array( 'theme_location' => 'primary', 'depth' => 3 ) ); ?>
    			<?php do_action( 'expound_navigation_after' ); ?>
    		</nav><!-- #site-navigation -->
    	</header><!-- #masthead -->
    	<div id="main" class="site-main">

    Any help would be greatly appreciated!

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Turning the header into a link to a page’ is closed to new replies.