e107help.org Q&A
0 like 0 dislike
What is right way to insert Google Adsence code (it needs to be insert between body tags)? I mean, via administration? Without access to source code (to create menu manually?) Is there way to create custom menu with plain html code? Site is running on very early alfa version, maybe now is there some possibility.

This code: https://support.google.com/adsense/answer/181950?hl=en&ref_topic=28893

e107 version v2 alfa
in Other by (2.0k points) 18 48 58

2 Answers

1 like 0 dislike

- Admin area

- create a new menue

- insert the Adsense code

 * only this code:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Homepage Leaderboard -->
<ins class="adsbygoogle"
(adsbygoogle = window.adsbygoogle || []).push({});

- Activate the menue (with Adsense) wherever you want on your page

by (61 points) 2 2
0 like 0 dislike
I would make a plugin with Shortcode then in the plugin_menu.php put the shortcode in or not make the menu_plugin.php and just make a custom menu via admin area - > custom pages/menus and put the shortcode in


{GOOGLEADSENCE} or how ever you name it.
by (459 points) 17 37 50
996 questions
1,389 answers
2,512 users