PDA

View Full Version : Add banner to archive


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
/*================================================= =====================*\

snakes1100
08-13-2013, 09:25 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=256325" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=256325</a>