WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Extending header width (3 posts)

  1. MacMediaMarketing
    Member
    Posted 5 months ago #

    Hi everyone,

    I am trying to extend the header's width to about the "home" navigation button...so not full width of page. What code can I edit in CSS that allows me to manipulate the size of the header?

    Thanks in advance,
    Mac

  2. MacMediaMarketing
    Member
    Posted 5 months ago #

    I forgot to add. The website is http://www.gylturnerart.com - Thanks again guys!

    Mac

  3. MacMediaMarketing
    Member
    Posted 5 months ago #

    Solved this issue. Simply post this code into the header.php file

    <!doctype html>
    <!--[if lt IE 7 ]> <html class="no-js ie6" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 7 ]>    <html class="no-js ie7" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 8 ]>    <html class="no-js ie8" <?php language_attributes(); ?>> <![endif]-->
    <!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
    <head>
    
    <meta charset="<?php bloginfo('charset'); ?>" />
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    
    <title><?php wp_title('|', true, 'right'); ?></title>
    
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_uri(); ?>" />
    
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    
    	<!--headercontainer-->
    	<div id="header_container">
    
    		<!--header-->
    	<div class="row">
    		<div class="twelve columns">
    
    				<?php if ( ( of_get_option('logo_image') ) != '' ) { ?>
    		<div id="logo"><a href="<?php echo esc_url(home_url()); ?>" title="<?php bloginfo('description'); ?>"><img src="<?php echo of_get_option('logo_image'); ?>" alt="<?php echo of_get_option('footer_cr'); ?>" /></a></div><!--logo end-->
    	<?php } else { ?>
    			<div id="logo2"><a href="<?php echo esc_url(home_url()); ?>" title="<?php bloginfo('description'); ?>"><?php bloginfo( 'name' ); ?></a></div><!--logo end-->
    	<?php } ?>
    
    	<!--top menu-->
    			<div id="menu_container" >
    
    		<?php $navcheck = '' ; ?>
    
    	<?php $navcheck = wp_nav_menu( array( 'container_class' => 'menu-header2', 'theme_location' => 'primary' , 'menu_id' => 'nav', 'fallback_cb' => '', 'echo' => false ) ); ?>
    
     <?php  if ($navcheck == '') { ?>
    
    	<ul id="nav">
    		<li class="page_item"><a href="<?php echo esc_url(home_url()); ?>" title="Home">Home</a></li>
    		<?php wp_list_pages('title_li=&sort_column=menu_order'); ?>
    
    	</ul>
    <?php } else echo($navcheck); ?>  
    
    	</div>
    
    		</div>
    			</div>
    
    	</div><!--header container end-->

Reply

You must log in to post.

About this Topic

Tags