Where is the main head tag located? We would like to place this smart code there:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "censored**",
enable_page_level_ads: true
});
</script
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- usac@usac
usac - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
You must log in to post replies.The head tag is in the page/elements/head view. Extend the view and you can add your code.
Is it just a copy and paste thing? We got a fatal error after we pasted the code under the last line.
@usac
1 - Create your own theme/plugin
2 - Create a new file in your plugin:
3 - Edit this file with your above AdSense code:
4 - Add the followed code in your start.php between init() function:
5 - Flush the caches via Administration
Learn Elgg