WordPress.org

Forums

Ad banner next to logo. (1 post)

  1. Avok
    Member
    Posted 1 year ago #

    Hello!
    I'm trying to put an 728x90 Adsense banner on the right side of the header next to my logo, but I haven't figured it out yet. Could you please give me a hand?

    This is my header.php code:

    <meta name="viewport" content="width=device-width" />
    
    <title><?php wp_title(' '); ?> <?php if(wp_title(' ', false)) { echo ' : '; } ?><?php bloginfo('name'); ?></title>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <!--[if lt IE 9]>
    <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
    <![endif]-->
    
    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    
    <?php wp_head(); ?>
    
    <script type="text/javascript">
    	jQuery(function () {
    		jQuery('#topnav .nav').mobileMenu();
    		jQuery('#catnav .nav').mobileMenu();
    	});
    </script>
    
    </head>
    
    <body <?php body_class(); ?>>
    
    <div id="outer-wrap">
    <div id="header">
    		<div id="head-content" class="clearfix">
    			<?php if ( get_option('solostream_site_title_option') == 'Image/Logo-Type Title' && get_option('solostream_site_logo_url') ) { ?>
    				<div id="logo">
    					<a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><img src="<?php echo get_option('solostream_site_logo_url'); ?>" alt="<?php bloginfo('name'); ?>" /></a>		</div>
    			<?php } else { ?>
    				<div id="sitetitle">
    
    				<div class="title"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></div> 
    
    					<div class="description">
    </div>
    
    	</div>
    			<?php } ?>
    			<?php include (TEMPLATEPATH . '/banner468head.php'); ?>
    		</div>
    	</div>
    
    	<div id="topnav"><div class="limit clearfix">
    			<?php if (has_nav_menu('topnav')) { ?>
    				<ul class="nav clearfix">
    					<?php wp_nav_menu(array('container'=>false,'theme_location'=>'topnav','fallback_cb'=>'nav_fallback','items_wrap'=>'%3$s')); ?>
    					<li class="searchform"><?php get_search_form(); ?></li>
    				</ul>
    			<?php } else { ?>
    				<ul class="nav clearfix">
    					<li id="home"<?php if (is_front_page()) { echo " class=\"current_page_item\""; } ?>><a href="<?php bloginfo('url'); ?>"><?php _e("Home", "solostream"); ?></a></li>
    					<?php wp_list_pages('title_li='); ?>
    					<li class="searchform"><?php get_search_form(); ?></li>
    				</ul>
    			<?php } ?>
    		</div>
    	</div>
    
    	<?php if ( get_option('solostream_show_catnav') == 'yes'  ) { ?>
    	<div id="catnav">
    		<div class="limit clearfix">
    			<?php if (has_nav_menu('catnav')) { ?>
    				<ul class="nav clearfix">
    					<?php wp_nav_menu(array('container'=>false,'theme_location'=>'catnav','fallback_cb'=>'catnav_fallback','items_wrap'=>'%3$s')); ?>
    				</ul>
    			<?php } else { ?>
    				<ul class="nav clearfix"><?php wp_list_categories('title_li='); ?></ul>
    			<?php } ?>
    		</div>
    	</div>
    	<?php } ?>
    
    	<div id="wrap">
    <?php include (TEMPLATEPATH . '/banner728.php'); ?>

    Where do I need to put the Adsense code? There is a certain custom CSS that I need to put?
    Thanks!

    [bump moderated]

Topic Closed

This topic has been closed to new replies.

About this Topic