{"id":31030,"date":"2012-01-11T17:20:18","date_gmt":"2012-01-11T15:20:18","guid":{"rendered":"https:\/\/nl.wordpress.org\/support\/topic\/google-adsense-in-header\/"},"modified":"2016-08-04T23:28:47","modified_gmt":"2016-08-04T23:28:47","slug":"google-adsense-in-header","status":"closed","type":"topic","link":"https:\/\/nl.wordpress.org\/support\/topic\/google-adsense-in-header\/","title":{"rendered":"Google Adsense in header"},"content":{"rendered":"<p>Hoi,<\/p>\n<p>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:<\/p>\n<pre><code>\/************************************************\n*\tHeader  \t\t\t\t\t\t\t\t\t*\n************************************************\/\n#header {\n\tfloat: left;\n\tdisplay: block;\n\tbackground-image: url(images\/bg140.png);\n\tbackground-position: center top;\n\tbackground-color: #000000;\n\twidth: 100%;\n\theight: 180px;\n\tmargin: 0px auto 0px;\n\tpadding: 0px;\n\t}\n#header .logo {\n\twidth: 100%;\n\ttext-align: center;\n\tmargin-left: auto;\n\tmargin-right: auto;\n\tpadding: 0px;\n\toverflow: hidden;\n\t}\n#header #title {\n\tpadding: 0px;\n\tmargin: auto;\n\t}\n#header #title a {\n\tbackground-image: url(images\/logo.png);\n\tbackground-repeat:no-repeat;\n\tdisplay: block;\n\twidth: 960px;\n\theight: 140px;\n\tmargin-right: auto;\n\tmargin-left: auto;\n\tpadding: 0;\n\ttext-indent: -9999px;\n\toverflow: hidden;\n\t}\n\t#header.googlehead {\n\tfloat: right;\n\twidth: auto;\n\t}\n#headertop {\n\tbackground: #FFFFFF;\n\twidth: 960px;\n\theight: 30px;\n\tmargin: 0px auto 0px;\n\tpadding: 0px;\n\t-moz-border-radius-bottomleft: 5px;\n\t-moz-border-radius-bottomright: 5px;\n\t-webkit-border-bottom-left-radius: 5px;\n\t-webkit-border-bottom-right-radius: 5px;\n\tborder-bottom-left-radius: 5px;\n\tborder-bottom-right-radius: 5px;\n\t}\n#headertop .date {\n\tfloat: right;\n\tdisplay: inline-block;\n\tcolor: #666666;\n\tfont-weight: bold;\n\tmargin: 4px 10px;\n\tpadding: 0px;\n\t}\n#headerbar {\n\tbackground: #222222;\n\twidth: 100%;\n\theight: 40px;\n\tmargin: 0px;\n\tpadding: 0px;\n\t}\n#headerbottom {\n\twidth: 960px;\n\theight: 40px;\n\tmargin: 0px auto 0px;\n\tpadding: 0px;\n\t}\n#headersearch {\n\tfloat: left;\n\tdisplay: block;\n\tbackground: #FFFFFF url(images\/search_icon.png) no-repeat;\n\twidth: 142px;\n\theight: 24px;\n\tmargin: 8px 10px 8px 0px;\n\tpadding: 0px 0px 0px 22px;\n\t-moz-border-radius: 5px;\n\t-khtml-border-radius: 5px;\n\t-webkit-border-radius: 5px;\n\tborder-radius: 5px;\n\t}\n#headersearch #searchform {\n\tmargin: 0px;\n\tpadding: 0px;\n\t}\n#headersearch #s {\n\tbackground: none;\n\twidth: 140px;\n\tcolor: #999999;\n\tfont-size: 11px;\n\tfont-family: Arial, Helvetica, sans-serif;\n\tline-height: 24px;\n\tmargin: 0px 0px 0px 0px;\n\tpadding: 6px 0px 4px 0px;\n\tdisplay: inline;\n\tborder: none;\n\t}\n#headlines {\n\tcolor: #666666;\n\t}\n#headlines h4 {\n\tfloat: left;\n\tdisplay: inline-block;\n\tcolor: #CCCCCC;\n\ttext-transform: uppercase;\n\tmargin: 9px 5px;\n\tpadding: 0px;\n\t}\n#headlines a.headline_title {\n\tdisplay: inline;\n\tcolor: #CCCCCC;\n\tfont-weight: bold;\n\tmargin: 0px;\n\tpadding: 0px;\n\ttext-decoration: none;\n\t}\n#headlines a.headline_title:hover {\n\tcolor: #FFFFFF;\n\ttext-decoration: underline;\n\t}\n#headlines p {\n\tdisplay: inline;\n\tcolor: #999999;\n\tmargin: 0px 20px 0px 0px;\n\tpadding: 0px;\n\toverflow: hidden;\n\t}\n#headlines p a {\n\tcolor: #666666;\n\t}\n#headlines p a:hover {\n\tcolor: #CCCCCC;\n\t}\ndiv.horizontal_scroller, div.vertical_scroller{\n\tposition: relative;\n\theight: 40px;\n\tdisplay: block;\n\toverflow: hidden;\n\t}\ndiv.scrollingtext{\n\tposition: absolute;\n\twhite-space: nowrap;\n\tline-height: 40px;\n\t}<\/code><\/pre>\n<pre><code>&lt;body &lt;?php if(function_exists(&#039;body_class&#039;)) body_class(); ?&gt;&gt;\n&lt;div id=&quot;fb-root&quot;&gt;&lt;\/div&gt;\n&lt;script&gt;(function(d, s, id) {\n  var js, fjs = d.getElementsByTagName(s)[0];\n  if (d.getElementById(id)) {return;}\n  js = d.createElement(s); js.id = id;\n  js.src = &quot;\/\/connect.facebook.net\/nl_NL\/all.js#xfbml=1&quot;;\n  fjs.parentNode.insertBefore(js, fjs);\n}(document, &#039;script&#039;, &#039;facebook-jssdk&#039;));&lt;\/script&gt;\n&lt;div id=&quot;header&quot;&gt;\n    &lt;div class=&quot;logo&quot;&gt;\n        &lt;h1 id=&quot;title&quot;&gt;&lt;a href=&quot;&lt;?php echo get_option(&#039;home&#039;); ?&gt;\/&quot; title=&quot;Home&quot;&gt;&lt;?php bloginfo(&#039;name&#039;); ?&gt;&lt;\/a&gt;&lt;\/h1&gt;\n    &lt;\/div&gt;\n\n\t&lt;div id=&quot;headerbar&quot;&gt;\n\n    \t&lt;div id=&quot;headerbottom&quot;&gt;\n\n            &lt;div id=&quot;headersearch&quot;&gt;\n                &lt;form id=&quot;searchform&quot; method=&quot;get&quot; action=&quot;&quot;&gt;\n                &lt;input type=&quot;text&quot; value=&quot;Zoeken...&quot; name=&quot;s&quot; id=&quot;s&quot; onfocus=&quot;if (this.value == &#039;Search Here&#039;) {this.value = &#039;&#039;;}&quot; onblur=&quot;if (this.value == &#039;&#039;) {this.value = &#039;Search Here&#039;;}&quot; \/&gt;\n                &lt;input type=&quot;hidden&quot; id=&quot;searchbutton&quot; value=&quot;GO&quot; \/&gt;&lt;\/form&gt;\n            &lt;\/div&gt;\n            &lt;div id=&quot;headlines&quot;&gt;\n                &lt;h4&gt;&lt;?php echo cat_id_to_name(ot_option(&#039;headline_cat&#039;)); ?&gt;Nieuwsflash:&lt;\/h4&gt;\n                &lt;div class=&quot;horizontal_scroller&quot;&gt;\n                    &lt;div class=&quot;scrollingtext&quot;&gt;\n                    &lt;?php $recent = new WP_Query(&quot;cat=&quot; .ot_option(&#039;headline_cat&#039;). &quot;&amp;showposts=&quot; .ot_option(&#039;headline_num&#039;) ); while($recent-&gt;have_posts()) : $recent-&gt;the_post();?&gt;\n                        &lt;a class=&quot;headline_title&quot; href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt; - &lt;p&gt;&lt;?php the_time(&#039;l j F, Y&#039;); ?&gt;&lt;\/p&gt;\n                    &lt;?php endwhile; ?&gt;\n                    &lt;\/div&gt;\n                &lt;\/div&gt;\n            &lt;\/div&gt;\n\n    \t&lt;\/div&gt;\n\n    &lt;\/div&gt;\n\n&lt;\/div&gt;\n\n&lt;div class=&quot;clear&quot;&gt;&lt;\/div&gt;\n\n&lt;div id=&quot;wrap&quot;&gt;<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-31030","topic","type-topic","status-closed","hentry","topic-tag-header"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/31030","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/31030\/revisions"}],"wp:attachment":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=31030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}