Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here is my header.php from the <header> tag
- </head>
- <body <?php body_class(); ?>>
- <nav id="access" role="navigation">
- <h3 class="assistive-text"><?php _e( 'Header Menu', 'twentyeleven' ); ?></h3>
- <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
- <div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>
- <div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div>
- <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
- <?php wp_nav_menu( array( 'theme_location' => 'header' ) ); ?>
- </nav><!-- #access -->
- <header id="branding" role="banner">
- <hgroup>
- <h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" 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>
- <?php
- // Check to see if the header image has been removed
- $header_image = get_header_image();
- if ( ! empty( $header_image ) ) :
- ?>
- <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
- <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
- <?php endif; // end check for featured image or standard header ?>
- </a>
- <?php
- // Has the text been hidden?
- if ( 'blank' == get_header_textcolor() ) :
- ?>
- <div class="only-search<?php if ( ! empty( $header_image ) ) : ?> with-image<?php endif; ?>">
- <?php get_search_form(); ?>
- </div>
- <?php
- else :
- ?>
- <?php get_search_form(); ?>
- <?php endif; ?>
- </header><!-- #branding -->
- <div id="page" class="hfeed">
- <div id="main">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement