WallBB Forums
Focus Theme - How to add google adsense ads in MyBB - Printable Version

+- WallBB Forums (https://wallbb.co.uk/forums)
+-- Forum: Theme Section (https://wallbb.co.uk/forums/forumdisplay.php?fid=5)
+--- Forum: Theme Documentation (https://wallbb.co.uk/forums/forumdisplay.php?fid=9)
+--- Thread: Focus Theme - How to add google adsense ads in MyBB (/showthread.php?tid=18)



How to add google adsense ads in MyBB - WallBB - 11-08-2017

This tutorial will tell you how to add google adsense in MyBB, this tutorial can help you add adsense ads in any MyBB theme.
I am using Focus Responsive MyBB theme, you can use any theme you want.
I am using footer area as an example. Suppose the adsense code is below :-
Code:
<div align="center">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Homepage Leaderboard -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-1234567820123456"
data-ad-slot="1234567890"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
To do this, go to the footer template in the admin Panel
  1. Go to Admin CP > Templates and Styles  > Template Sets » FocusResponsive Templates » footer
  2. Edit the template, and find <debugstuff>
  3. Below this add, the above adsense code(Use your adsense code)
  4. Save the template and adsense will be installed on your website.
If you don't know how to find adsense code, please read this tutorial
https://support.google.com/adsense/answer/181960?hl=en

Regards
WallBB