where should I define full header size?

Discussion in 'HTML & Website Design' started by alex06295, Jan 2, 2012.

  1. #1
    I have copied it from header.php

    ----------------------
    <?php
    /**
     * John Loan Pro Theme header.
     */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title><?php wp_title(' | ', true, 'right'); ?> <?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' ); ?>" />
    <?php
    					
    			get_header_image()  ?>	
    	
    <style type="text/css">					
    #hb {
    	background:#fff url(<?php header_image(); ?>) no-repeat;
    	width:<?php echo HEADER_IMAGE_WIDTH; ?>; 
    	height:<?php echo HEADER_IMAGE_HEIGHT; ?>;
    }
    </style>
    				 
    
    <?php
    
    get_header_textcolor() ?>
    <style type="text/css">
    #site-title, #site-description, #site-title a{
    	color:#<?php header_textcolor() ?>;
    }
    </style>
    					
    <?php
    	if ( is_singular() && get_option( 'thread_comments' ) )
    		wp_enqueue_script( 'comment-reply' );
    	wp_head();
    ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="wrapper">
    	<div id="header">
    		
    			<div id="hb" >
    				<h1 id="site-title"><a href="http://e07.net/"><img src="http://i.imgur.com/g5QgG.png" alt="forum posting service" />
    					</h1>
    				
    				<div id="site-description"><?php bloginfo( 'description' ); ?></div>
    
    				
    			</div><!-- #hb -->
    
    			<div id="access">
    				<div class="skip-link screen-reader-text"><a href="#content" title="Skip to content">Skip to content</a></div>
    				<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    			</div><!-- #access -->
    	</div><!-- #header -->
    
    	<div id="main">
    PHP:
    ----------------------

    where should I define full header size?

    as my logo is not fitting its pre defined size and I'm not able to see.. it is for my site..... e07.net,
     
    alex06295, Jan 2, 2012 IP
  2. mmslax2

    mmslax2 Active Member

    Messages:
    235
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #2
    
    width:<?php echo HEADER_IMAGE_WIDTH; ?>; 
        height:<?php echo HEADER_IMAGE_HEIGHT; ?>;
    
    Code (markup):
    One way is to replace the php commands above with values. For example, change
    width:<?php echo HEADER_IMAGE_WIDTH; ?>
    Code (markup):
    to
    width:700px;
    Code (markup):

    Of course if you have to do the same with height, but if you ever want to change logo design's and want to re-size it you'll have to go back in and edit these values. But that should work.
     
    mmslax2, Jan 2, 2012 IP
  3. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    819
    Best Answers:
    7
    Trophy Points:
    320
    #3
    Just define the variable HEADER_IMAGE_WIDTH somewhere before you call it.
     
    mmerlinn, Jan 2, 2012 IP