Monday, October 6, 2008

Blogger: Resolve Common Error while placing ads in a blogger

This article is little off-beat. However this is definitely useful for those who are newbie in the blogging world. Recently I have tried to display ad inside the article. For that I have made some changes in the template. After entering the ad code when try to save the template I have encountered different errors.
  1. Open quote is expected for attribute "{1}" associated with an element type <elementType> : Check the template code and look for (say height). This will be something like height = 5. Now blogger will complaint the above error. The solution is simple just put 5 within single quote like height = '5'.
  2. The reference to entity "<entity>" must end with the ';' delimiter. : Check the template code and look for (say ad_size). Usually this kind of error is found when we use & inside a url (say http: // example.com?a=1&ad_size=3). Now "&" has to be replaced with "&amp;" to get rid of the problem.

Note: These problem errors are reference to blogger.com

Similar kinds of problem might occur because less than and greater than sign.

<>

> should be replaced with &gt;

"" should be replaced with &quot;

Regards

Monu

0 comments: