If you want to earn money from your site or blog, Google Adsense is the most popular services to monetize your website content. When implemented, Adsense will display targeted Google ads on your blog and they can generate revenue on either a per-click or per-impression basics.
In order to display Google Adsense ads on your blog or website , you should first signup to google Adsense program.
When you signup successful to Google Adsense it will ask you to monetize your website with Google Adsense ads, and you will get a code from google Adsense and you will need to paste this code after the <head> tag of your template.
This is the Adsense ad code which will you get from Adsense.
But what happened when you paste the code in <head > section and trying to save your theme and you get a error like this.
Error parsing XML, line 6, column 15: Attribute name "async" associated with an element type "script" must be followed by the ' = ' character
Now what we can do to solve this problem.Do not be afraid it is very easy, just add a line
async="async" in the palace of async (top line of your ad code).
see this final code output and compare it with first, what changes you will see only a line is changed.
Now you will see the error has been removed when you edit the code and save the theme.
Watch this video tutorials to easy understand.
___________________________________________________________________________________________
Thanks for give us your valuable time to read this article๐๐๐.
If you find this article helpful for your blog or website then give us a feedback of our work in comment box, you can also get subscribe to this blog for more stuffs like this.
Don't be hesitate to drop a comment in comment box.
B
Many beginner bloggers get this error when they purchase a self hosted domain name for his blog and after trying to monetize his .com blog but instead they get XML parsing error so this Artical help you to get overcome this error in only one step.
ReplyDelete