Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense site search

Shows ads but no results?

         

wheelie34

3:46 pm on Jun 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well I have just implemented the adsense search for the first time on an 8 year old, well indexed site with excellent SERP rankings etc.

I use an included .txt file for the header which contains an image AND the search box, I created a results.php file for the adsense search. After the first test, I have 2 problems.

1) The search box has an extra line under it so it ruins the layout by doubling it's height, how can this be fixed?

2) It shows no results from my site, all that appears is the ads! the site: command shows 2000+ pages so its not that there are no possible results to show.

After this I decided to just make a test search.php and results.php and just pasted the code from the adsense cp still no results, any suggestions?

Thanks in advance

wheelie34

7:13 pm on Jun 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ok, the image is now working I forgot the stylesheet include, the results now work AFTER taking the tick out of the use safe search checkbox.

I would still like to get rid of the extra line/space under the search box, I can't believe everyone else uses it this way any ideas? the snippet of javascript after the closing form tag is what creates the space, can I move it or is that considered as fiddling with the code?

proboscis

8:58 pm on Jun 30, 2008 (gmt 0)

10+ Year Member



form margin-bottom: 0px;

That might work in your stylesheet?

netmeg

9:13 pm on Jun 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yah; I checked my stylesheet and I have

form { margin: 0px; }

That should take care of it.

wheelie34

7:34 am on Jul 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



thanks proboscis and netmeg, that did the trick