We’ve detected ads as part of your theme. They need to be removed before your theme will be allowed into the theme directory.
I can’t seems to find the solution after some time. Therefore, I created a support thread and end up emailed the theme to wordpress team and told them the problem.
Finally, I got a reply from the team few hours later:
The upload process is picking up the hard coded adsense items in your theme (in header.php for instance). Generally when themes want to support showing ads like this they just provide a way to paste in the ad code.
So, in case you got the error message while you submit a theme, you know what to look for.
All I wanted is to let save my theme users’ time, allow them to display google ads in a simple way – by just entering adsense publisher id.
Now that I had this problem, I can do nothing but to remove all adsense codes from the template files and provide a way to paste in the ad code in theme option page.
Last but not least, I’ve created a page for user to get adsense codes for their theme along with recommended background and text colours. Look, I want to save their time again :)
Beside google adsense, if you have advertisement slots (eg: 125×125 ads at sidebar) in your theme, you might get that message too. You don’t have to remove the slots, just disable them by default.
or Subscribe to specific category only :
You must be logged in to post a comment.