StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-18-2011, 01:59 PM
donielle donielle is offline
Registered User
Genesis Member
 
Join Date: Sep 2009
Posts: 69
Default Placing the ad box back into the header

The site: www.NaturallyKnockedUp.com

I'd like to place the widgeted ad box back into my header and can't quite figure out where to place the code. I hired a designer last fall and she moved all of my header options to a new template, the code:
PHP Code:
<?php if(get_theme_mod('header_layout') == 'Full') { ?>

<div id="header-blank">

<?php if(get_theme_mod('header_blog_title') == 'Image') { ?>
    <div class="headerleft" id="imageheader">
        <?php
            
if (is_home()) {
                echo 
'<h1><a href="'.get_option('home').'/">'.get_bloginfo('name').'</a></h1>';
            } else {
                echo 
'<h4><a href="'.get_option('home').'/">'.get_bloginfo('name').'</a></h4>';
            }
        
?>
       <p><?php bloginfo('description'); ?></p>
    </div>
<?php } else { ?>
    <div class="headerleft">
        <div class="headertext">      
            <?php if (is_home()) { ?>
            <h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
            <?php } else { ?>
            <h4><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h4>
            <?php ?>
            <p><?php bloginfo('description'); ?></p> 
        </div>
    </div>
<?php ?>

</div>
       
<?php } else { ?>

<div id="header">

<?php if(get_theme_mod('header_blog_title') == 'Image') { ?>
    <div class="headerleft" id="imageheader">
        <?php
            
if (is_home()) {
                echo 
'<h1><a href="'.get_option('home').'/">'.get_bloginfo('name').'</a></h1>';
            } else {
                echo 
'<h4><a href="'.get_option('home').'/">'.get_bloginfo('name').'</a></h4>';
            }
        
?>
       <p><?php bloginfo('description'); ?></p>
    </div>
<?php } else { ?>
    <div class="headerleft">
        <div class="headertext">      
            <?php if (is_home()) { ?>
            <h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
            <?php } else { ?>
            <h4><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h4>
            <?php ?>
            <p><?php bloginfo('description'); ?></p> 
        </div>
    </div>
<?php ?>

    <div class="headerright">

      <div id="headersearch"><form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
        <input type="text" value="Search this site..." name="s" id="searchbox" onfocus="if (this.value == 'Search this site...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search this site...';}" />
        <input type="submit" id="searchbutton" value="SEARCH" /></form></div>


</div>
</div>

<?php ?>
I've since moved a bunch of things around since she did it and want to monetize the header a bit. :-) Where, do I put the code in so that it works properly? And...if I might ask - what code?

Thanks in advance!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Placing banner ad above header Lori General Discussion 5 12-13-2010 01:42 PM
Placing a picture link within my header deveren General Discussion 1 05-28-2010 03:00 PM
Placing ad in right corner of header fishman General Discussion 4 03-08-2009 03:24 PM


All times are GMT -5. The time now is 12:10 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.