Comment on SEO AdSense WordPress Theme by Erik.

AdSense Publisher ID Hi Dave,

I have a question that may be relevant to others from an appearance standpoint. I like having the big 336 x 280 in-content block ad in most of the archive pages (tags, categories, etc). However I’d rather not have it in the main index (or most of the individual posts/pages), for aesthetic reasons.

Currently I have been able to cobble together a partial solution, by switching on the “Main Content Ad Unit” (Ad Unit 1), then stripping out the following bit of code from the php on single.php and page.php, which seems to get it off those pages cleanly:

current_post == st_adsense_main_ad()){echo(”); st_adsense_insert(st_adsense_01());?>

However, I can’t find a similar bit of code on the index.php, (and of course I’m not even sure if this is the wisest way to do it).

Is there are a way to switch off the in-text block ad on just the main index page? I’ve been scouring what you wrote above, and a number of previous comments as well, but been stuck on this for a few hours now…I saw what you wrote about adding the hide ads code snippet with the “stallionhideads” line of code, but wasn’t sure how/if that would work for just the main index page.

I was able to successfully do this on an old Stallion version (6.0.1) but seem to be hitting the wall here.

I know you probably have a ton of things going on, but if you have any solution on this it would be much appreciated!

Thanks,

Erik W