[SOLVED] How to add google adsense code to wondercms website

Ask for help or provide support to other members.
Post Reply
OneManLaptop
Posts: 68
Joined: Tue Mar 16, 2021 3:29 pm

Re: how to add google adsense code to wondercms website

Post by OneManLaptop »

Hey catchnames, I see no reason why this wouldn't work. What do you mean here by, "not working"?

Have you followed the correct steps in setting up the account:
https://support.google.com/adsense/answer/7584263?hl=en

Then the steps for adding the verification code to your Wonder CMS template:
https://support.google.com/adsense/answ ... opic=28893

So as per the example, you would open:
root/themes/YOURTHEME/theme.php

Locate:

Code: Select all

<html>
<head>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-YOUR-AD-ID-HERE" crossorigin="anonymous"></script>
This is the head of your page.
<title>Example HTML page</title>
</head>
<body>
This is the body of your page.
</body>
</html>
Then paste your specific account code you got from your Adsense account into: theme.php.

I don't use Adsense myself but let us know how you get on with that, thanks. :)
Post Reply