Usually I would just google this question and find what I'm looking for in a matter of seconds....but 15 minutes later I'm still not finding anything. I'm looking for a site (or maybe someone can just tell me here) that tells you how to add an ad to your site in the header like this (see red box): Apparently it's one of the most clicked locations for an add... I'm using wordpress; I tried going in the header.php file, but that just inserts the ad under the image at the top. Thanks in advance
I really hate bumping posts up, but I'm still clueless on this topic, and it's number one on my list. Could someone please save me the 3 hours of hunting and searching for the answer, and take 2 min to reply with at least a direction to check? Thanks.
Maybe something like this? <div style="float:right; padding-top:50px; padding-right:10px"> YOUR AD CODE HERE </div> PHP:
Hey, Thanks...where do I put it? I tried the index...which eventually led me to my header.php file, which has led me to my banner.php file, but when I put the code in nothing is happening. Usually I see changes within a few minutes.
Ill show you my code for my template on how i put the code in ok if you go to my site http://www.supremereviews.com i put the banner in the header as i think you wanted it my code looks like this(scroll down to the red code) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <?php $options = get_option('inove_options'); if (is_home()) { $home_menu = 'current_page_item'; } else { $home_menu = 'page_item'; } if($options['feed'] && $options['feed_url']) { if (substr(strtoupper($options['feed_url']), 0, 7) == 'HTTP://') { $feed = $options['feed_url']; } else { $feed = 'http://' . $options['feed_url']; } } else { $feed = get_bloginfo('rss2_url'); } ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <?php if (is_home()) { $description = $options['description']; $keywords = $options['keywords']; } else if (is_single()) { $description = $post->post_title; $keywords = ""; $tags = wp_get_post_tags($post->ID); foreach ($tags as $tag ) { $keywords = $keywords . $tag->name . ", "; } } else if (is_category()) { $description = category_description(); } ?> <meta name="keywords" content="<?php echo $keywords; ?>" /> <meta name="description" content="<?php echo $description; ?>" /> <title><?php bloginfo('name'); ?><?php wp_title(); ?></title> <link rel="alternate" type="application/rss+xml" title="<?php _e('RSS 2.0 - all posts', 'inove'); ?>" href="<?php echo $feed; ?>" /> <link rel="alternate" type="application/rss+xml" title="<?php _e('RSS 2.0 - all comments', 'inove'); ?>" href="<?php bloginfo('comments_rss2_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <!-- style --> <style type="text/css" media="screen">@import url( <?php bloginfo('stylesheet_url'); ?> );</style> <?php if (strtoupper(get_locale()) == 'ZH_CN') : ?><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/zh_CN.css" type="text/css" media="screen" /><?php endif; ?> <?php if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) : ?><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/ie6.css" type="text/css" media="screen" /><?php endif; ?> <!-- script --> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/util.js"></script> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/menu.js"></script> <?php wp_head(); ?> </head> <?php flush(); ?> <body> <!-- wrap START --> <div id="wrap"> <!-- container START --> <div id="container"> <!-- header START --> <div id="header"> [COLOR="Red"][B]<!-- ad code START --> <div style="float:right; padding-top:10px; padding-right:10px"> MY ADSENSE CODE HERE </div> <!-- ad code end -->[/B][/COLOR] <div id="caption"> <h1 id="title"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1> <div id="tagline"><?php bloginfo('description'); ?></div> </div> <!-- navigation START --> <div id="navigation"> <ul id="menus"> <li class="<?php echo($home_menu); ?>"><a class="home" title="<?php _e('Home', 'inove'); ?>" href="<?php echo get_settings('home'); ?>/"><?php _e('Home', 'inove'); ?></a></li> <?php if($options['menu_type'] == 'categories') { wp_list_categories('depth=2&title_li=0&orderby=name&show_count=0'); } else { wp_list_pages('depth=2&title_li=0&sort_column=menu_order'); } ?> <li><a class="lastmenu" href="javascript:void(0);"></a></li> </ul> <!-- searchbox START --> <div id="searchbox"> <?php if($options['google_cse'] && $options['google_cse_cx']) : ?> <form action="http://www.google.com/cse" method="get"> <div class="content"> <input type="text" class="textfield" name="q" size="24" /> <input type="hidden" name="cx" value="<?php echo $options['google_cse_cx']; ?>" /> <input type="hidden" name="ie" value="UTF-8" /> <a class="switcher" ><?php _e('Switcher', 'inove'); ?></a> </div> </form> <?php else : ?> <form action="<?php bloginfo('home'); ?>" method="get"> <div class="content"> <input type="text" class="textfield" name="s" size="24" value="<?php echo wp_specialchars($s, 1); ?>" /> <a class="switcher" ><?php _e('Switcher', 'inove'); ?></a> </div> </form> <?php endif; ?> </div> <!-- searchbox END --> <div class="fixed"></div> </div> <!-- navigation END --> <div class="fixed"></div> </div> <!-- header END --> <!-- content START --> <div id="content"> <!-- main START --> <div id="main"> Code (markup): hope this helps ohh and i changed the padding on the top of the header to 10px as it fits my blog header better
Good luck with your test, however in my tests I notice thats the LEAST clicked ad location of all. People scroll right past it and dive into the content, then close the site when they're done. So even thought the ad is on the top, very few people really see it