How do I put banner on header? Please help..

by Adie
4 replies
Hello fellow warriors. I like this theme but it is so basic that there are no options to pu banners unless you are good in coding, and I'm not. I wanted to put 468 x 60 banner on the right portion of the header of imahinasyon.com but don't know how to do it.

Here is the header code:

Code:
<?php
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="main">
 *
 * @package Toolbox
 * @since Toolbox 0.1
 */
?><!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php
    /*
     * Print the <title> tag based on what is being viewed.
     */
    global , ;

    wp_title( '|', true, 'right' );

    // Add the blog name.
    bloginfo( 'name' );

    // Add the blog description for the home/front page.
     = get_bloginfo( 'description', 'display' );
    if (  && ( is_home() || is_front_page() ) )
        echo " | ";

    // Add a page number if necessary:
    if (  >= 2 ||  >= 2 )
        echo ' | ' . sprintf( __( 'Page %s', 'toolbox' ), max( ,  ) );

    ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<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>
<![endif]-->

<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
<div id="page" class="hfeed">
<?php do_action( 'before' ); ?>
    <header id="branding" role="banner">
        <hgroup>
            <h1 id="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="http://imahinasyon.com/wp-content/uploads/2012/08/logo.jpg"></a></h1>
            <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
        </hgroup>

        <nav id="access" role="navigation">
            <h1 class="assistive-text section-heading"><?php _e( 'Main menu', 'toolbox' ); ?></h1>
            <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'toolbox' ); ?>"><?php _e( 'Skip to content', 'toolbox' ); ?></a></div>

            <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
        </nav><!-- #access -->
    </header><!-- #branding -->

    <div id="main">
Suggestion and help is extremely appreciated.
Thank you,
adie
#banner #header #put
  • Profile picture of the author dsimie
    Try the below code. I cant post url into the code. So delete the spaces in URLs

    Code:
    <?php
    /**
     * The Header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="main">
     *
     * @package Toolbox
     * @since Toolbox 0.1
     */
    ?><!DOCTYPE html>
    <!--[if IE 6]>
    <html id="ie6" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 7]>
    <html id="ie7" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 8]>
    <html id="ie8" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width" />
    <title><?php
        /*
         * Print the <title> tag based on what is being viewed.
         */
        global , ;
    
        wp_title( '|', true, 'right' );
    
        // Add the blog name.
        bloginfo( 'name' );
    
        // Add the blog description for the home/front page.
         = get_bloginfo( 'description', 'display' );
        if (  && ( is_home() || is_front_page() ) )
            echo " | ";
    
        // Add a page number if necessary:
        if (  >= 2 ||  >= 2 )
            echo ' | ' . sprintf( __( 'Page %s', 'toolbox' ), max( ,  ) );
    
        ?></title>
    <link rel="profile" href="http : //gmpg . org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
    <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>
    <![endif]-->
    
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="page" class="hfeed">
    <?php do_action( 'before' ); ?>
        <header id="branding" role="banner">
            <hgroup>
            <div style="width:100%">
            <div style="width:40%;float:left;">
                <h1 id="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="http : //imahinasyon.com/wp-content/uploads/2012/08/logo.jpg"></a></h1>
            </div>
            <div style="width:60%;float:right;">
            Your Banner Code here
            </div>
            </div>
                <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
            </hgroup>
    
            <nav id="access" role="navigation">
                <h1 class="assistive-text section-heading"><?php _e( 'Main menu', 'toolbox' ); ?></h1>
                <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'toolbox' ); ?>"><?php _e( 'Skip to content', 'toolbox' ); ?></a></div>
    
                <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
            </nav><!-- #access -->
        </header><!-- #branding -->
    
        <div id="main">
    {{ DiscussionBoard.errors[6819022].message }}
  • Profile picture of the author Adie
    Thank you, but it didn't work. I used the &nbsp; instead...
    Signature



    Moderator's Note: You're only allowed to put your own products or sites in your signature.

    Signature edited.
    {{ DiscussionBoard.errors[6821858].message }}
  • Profile picture of the author YemTv
    thank you,the banner are already shown on header.
    Signature
    CBDISCOUNTS - Clickbank Discounted Marketplace
    Magic Article Rewriter - SAVE $24 OFF!
    {{ DiscussionBoard.errors[6825116].message }}
  • Profile picture of the author rajeevrla
    Is you problem solved? I can see the banner on your website in the header. You need some good looking free themes, why not try Woothemes, they have lot of free themes available: Free | WooThemes
    Signature

    Have a great day!

    {{ DiscussionBoard.errors[6832273].message }}

Trending Topics