CSSGallery theme - Header file modification

Place for WordPress Themes related issues

CSSGallery theme - Header file modification

Postby anand_n on Sun Apr 27, 2008 4:57 am

Hi,

I want to divide the header into two parts. Logo is displayed on the left side and I want to show some ads on the right side. Can you give me the code for dividing the header.php file?

Regards,
Anand N
anand_n
 
Posts: 4
Joined: Sun Apr 27, 2008 4:50 am

Re: CSSGallery theme - Header file modification

Postby Shabu on Sun Apr 27, 2008 7:45 am

File Name: Style.css

Find:
Code: Select all
#header h1 {
   margin: 0;
   padding:0;
}


Replace with:
Code: Select all
#header h1 {
   margin: 0;
   padding:0;
   float:left;
   width: 250px;
}
#header p {
   margin: 5px 0 0 0;
   padding:0;
   float:right;
   width: 470px;
}


File Name: header.php

Find:
Code: Select all
<div id="header">
    <h1><a href="<?php echo get_option('home'); ?>/" id="logo"></a></h1>
</div>


Replace with:
Code: Select all
<div id="header">
    <h1><a href="<?php echo get_option('home'); ?>/" id="logo"></a></h1>
    <p><-BANNER CODE HERE-></p>
</div>
<div class="clear"></div>
Your donation will keep alive the free templates and support.
Don't contact me by email for support, email will be ignored.
User avatar
Shabu
Site Admin
 
Posts: 67
Joined: Wed Apr 23, 2008 8:35 am
Location: Dhaka, Bangladesh


Return to WordPress Themes

Who is online

Users browsing this forum: No registered users and 1 guest

cron