Beschrijving
Ga naar de inhoud
Nederlands
Ga naar de inhoud
Google Adsense in header
Hoi,
Ik heb een probleem. Ik ben al dagen bezig om mijn adsense code in de header te krijgen, maar dit lukt me tot op heden niet. heeft iemand een idee? Hier is de header code + de bijbehorende CSS:
/************************************************ * Header * ************************************************/ #header { float: left; display: block; background-image: url(images/bg140.png); background-position: center top; background-color: #000000; width: 100%; height: 180px; margin: 0px auto 0px; padding: 0px; } #header .logo { width: 100%; text-align: center; margin-left: auto; margin-right: auto; padding: 0px; overflow: hidden; } #header #title { padding: 0px; margin: auto; } #header #title a { background-image: url(images/logo.png); background-repeat:no-repeat; display: block; width: 960px; height: 140px; margin-right: auto; margin-left: auto; padding: 0; text-indent: -9999px; overflow: hidden; } #header.googlehead { float: right; width: auto; } #headertop { background: #FFFFFF; width: 960px; height: 30px; margin: 0px auto 0px; padding: 0px; -moz-border-radius-bottomleft: 5px; -moz-border-radius-bottomright: 5px; -webkit-border-bottom-left-radius: 5px; -webkit-border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; } #headertop .date { float: right; display: inline-block; color: #666666; font-weight: bold; margin: 4px 10px; padding: 0px; } #headerbar { background: #222222; width: 100%; height: 40px; margin: 0px; padding: 0px; } #headerbottom { width: 960px; height: 40px; margin: 0px auto 0px; padding: 0px; } #headersearch { float: left; display: block; background: #FFFFFF url(images/search_icon.png) no-repeat; width: 142px; height: 24px; margin: 8px 10px 8px 0px; padding: 0px 0px 0px 22px; -moz-border-radius: 5px; -khtml-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; } #headersearch #searchform { margin: 0px; padding: 0px; } #headersearch #s { background: none; width: 140px; color: #999999; font-size: 11px; font-family: Arial, Helvetica, sans-serif; line-height: 24px; margin: 0px 0px 0px 0px; padding: 6px 0px 4px 0px; display: inline; border: none; } #headlines { color: #666666; } #headlines h4 { float: left; display: inline-block; color: #CCCCCC; text-transform: uppercase; margin: 9px 5px; padding: 0px; } #headlines a.headline_title { display: inline; color: #CCCCCC; font-weight: bold; margin: 0px; padding: 0px; text-decoration: none; } #headlines a.headline_title:hover { color: #FFFFFF; text-decoration: underline; } #headlines p { display: inline; color: #999999; margin: 0px 20px 0px 0px; padding: 0px; overflow: hidden; } #headlines p a { color: #666666; } #headlines p a:hover { color: #CCCCCC; } div.horizontal_scroller, div.vertical_scroller{ position: relative; height: 40px; display: block; overflow: hidden; } div.scrollingtext{ position: absolute; white-space: nowrap; line-height: 40px; }<body <?php if(function_exists('body_class')) body_class(); ?>> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/nl_NL/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div id="header"> <div class="logo"> <h1 id="title"><a href="<?php echo get_option('home'); ?>/" title="Home"><?php bloginfo('name'); ?></a></h1> </div> <div id="headerbar"> <div id="headerbottom"> <div id="headersearch"> <form id="searchform" method="get" action=""> <input type="text" value="Zoeken..." name="s" id="s" onfocus="if (this.value == 'Search Here') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search Here';}" /> <input type="hidden" id="searchbutton" value="GO" /></form> </div> <div id="headlines"> <h4><?php echo cat_id_to_name(ot_option('headline_cat')); ?>Nieuwsflash:</h4> <div class="horizontal_scroller"> <div class="scrollingtext"> <?php $recent = new WP_Query("cat=" .ot_option('headline_cat'). "&showposts=" .ot_option('headline_num') ); while($recent->have_posts()) : $recent->the_post();?> <a class="headline_title" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> - <p><?php the_time('l j F, Y'); ?></p> <?php endwhile; ?> </div> </div> </div> </div> </div> </div> <div class="clear"></div> <div id="wrap">
Het onderwerp ‘Google Adsense in header’ is gesloten voor nieuwe reacties.



