Adding banner ad in the header secton…almost there
-
First of all I’ve searched pages and pages about this and almost got it, but I just cant put 728×90 the banner next to the logo, it shows up but not in the right spot. can someone help me out really quick? thx
Im using crushed pipe theme here at https://www.juicytabs.com
trying to put this adsense code
<script type="text/javascript"><!-- google_ad_client = "pub-9846936382120777"; /* 728x90, Header Banner */ google_ad_slot = "7191989407"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
in my header.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head profile="https://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <!--[if IE 6]> <link rel="stylesheet" href="<?=bloginfo('template_url')?>/style-ie6.css" type="text/css" media="screen" /> <![endif]--> <?php wp_head(); ?> </head> <body> <div id="body_page"> <div id="page"> <div id="header"> <h1> <a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a><div class="description"><?php bloginfo('description'); ?></div> </h1> </div> <div id="menu"> <div id="menu_items"> <div><a href="<?php echo get_option('home'); ?>/" id="home">Home</a></div><?php wp_list_pages2(); ?> </div> <div id="menu_search"> <form method="get" id="searchform_top" action="<?php bloginfo('url'); ?>/"> <div> <input type="text" value="<?php the_search_query(); ?>" name="s" id="searchform_top_text" /> <input type="image" src="<?php bloginfo('template_url')?>/images/go.gif" id="gosearch" /> </div> </form> </div> </div> <div id="body"> <div id="body_top"> <div id="body_left"> <div id="body_left_content">
also added this to my style.css
#googleads { text-align: right; padding: 0px 0 0px 0px; margin: 0 auto; color:#000000; }
also tried adding this to adsense code
<table><tr><td align=center>
ADSENSE CODE
</td></tr></table>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding banner ad in the header secton…almost there’ is closed to new replies.