Advertisement
Webulous

Centered Header and Menu

Apr 17th, 2014
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.36 KB | None | 0 0
  1. <header id="masthead" class="site-header header-wrap" role="banner">
  2.  <div class="container">
  3.   <div class="row">
  4.    <div class="span12">
  5.     <div class="logo site-branding">
  6.     <?php if( isset( $urvr['site-title'] ) && isset( $urvr['custom-logo'] ) && $urvr['site-title'] ) : ?>
  7.      <img src="<?php echo $urvr['custom-logo']['url']; ?>" alt="logo" >
  8.     <?php else : ?>
  9.      <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  10.      <?php if( isset( $urvr['site-description'] ) && $urvr['site-description'] != 0 ) : ?>
  11.       <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
  12.      <?php endif; ?>
  13.     <?php endif; ?>
  14.     <?php if( ! isset( $urvr['site-description'] ) ) : ?>
  15.      <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
  16.     <?php endif; ?>
  17.    </div> <!-- .logo -->
  18.   </div> <!-- .span12 -->
  19.  </div> <!-- .row -->
  20.  
  21.  <div class="row">
  22.   <div class="span12">
  23.    <nav id="site-navigation" class="main-navigation" role="navigation">
  24.     <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', TEXTDOMAIN ); ?></a>
  25.     <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  26.    </nav> <!-- #site-navigation -->
  27.   </div> <!-- .span12 -->
  28.  </div> <!-- .row -->
  29.  </div> <!-- .container -->
  30. </header><!-- #masthead -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement