MyBB Community Forums

Full Version: Google AdSense
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For the life of me i cannot figure this s out, Angry
how do i add this code i got to the header in the new version of MyBB


<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- example.com -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-000000000000"
     data-ad-slot="0000000000"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
admin panel >> Templates & Style >> templates >> [your theme's templates] >> Header Templates --> header

add your code at the bottom & save the template
Thanks for the reply, When you say the bottom do you mean after this <br>


<div id="container">
	
		<div id="content">
			<div class="wrapper">
				{$pm_notice}
				{$bannedwarning}
				{$bbclosedwarning}
				{$unreadreports}
				{$pending_joinrequests}
				{$awaitingusers}
				<navigation>
				<br />
^ yes, after <br /> (obviously, add your code in a new line)
<br />
your code
Thanks Alot Smile
Here's A Beer