DRJ
08-13-2013, 06:54 PM
I wanted to add a logo and banner to the archive/index.php page.
I was able to do this by adding the Google Adsense code above the <?php in the file and it seemed to work fine, but occasionally I get an error saying cannot modify header, headers already sent.
But the warning is intermittent so I am not sure of the cause.
<script type="text/javascript"><!--
google_ad_client = "ca-pub-xxx";
/* Archive_Header_Banner */
google_ad_slot = "xxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
</td>
</table>
<?php
/*================================================= =====================*\
I was able to do this by adding the Google Adsense code above the <?php in the file and it seemed to work fine, but occasionally I get an error saying cannot modify header, headers already sent.
But the warning is intermittent so I am not sure of the cause.
<script type="text/javascript"><!--
google_ad_client = "ca-pub-xxx";
/* Archive_Header_Banner */
google_ad_slot = "xxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
</td>
</table>
<?php
/*================================================= =====================*\