Add special PHP to header

Discussion in 'BizWay WordPress Theme' started by v4sb, May 14, 2013.

  1. v4sb

    v4sb Member

    Joined:
    Mar 14, 2013
    Messages:
    341
    Likes Received:
    0
    Hi! I have uploaded a plugin called WP Bannerize, so that I can display 'updates' about my store, etc. I would like to display this in the header area. I have the PHP code to put into my header section; however, I want it to be in a specific place and I am not sure how to do that. The PHP code for my plugin is this: <?php if(function_exists( 'wp_bannerize' ))
    wp_bannerize(); ?>

    Below is a screenshot of my homepage. You can see that there is a lot of blank white space in the header. I would like the middle to right side of the header to display my banner. How do I or where do I insert the code in the header to get it to display properly?

    Thank you.
    [​IMG]
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    For this you need to do some editing.
    Open header.php and replace code shown in the image with the code given below.

    [​IMG]

    Code:
            <div class="grid_16 alpha">
            <div class="logo"> <a href="<?php echo home_url(); ?>"><img src="<?php if (inkthemes_get_option('inkthemes_logo') != '') { ?><?php echo inkthemes_get_option('inkthemes_logo'); ?><?php } else { ?><?php echo get_template_directory_uri(); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a></div></div>
        <div class="grid_8 omega"><div class="banner"><?php if(function_exists( 'wp_bannerize' )) wp_bannerize(); ?></div></div>
    Note: Replace code between <!--Start Logo--> and <!--End Logo-->
     

Share This Page