DISQUS

Brian Wong | The Official Blog: How To Add Customized Adsense for Search Block in Wordpress

  • Vidal Aponte · 1 year ago
    Hello Sir,

    Thank you for the information you have helped me alot. I just wanted to ask 1 question. In my blog, where do I go to create a new page?

    Thank you very much!

    Vidal Aponte
  • Brian Wong · 1 year ago
    Go to your WordPress Dashboard and select "Write", the choose to write a new page instead of a new post.
  • George · 1 year ago
    Hi,
    I folloed all steps as you explained, But while testing the same I am getting 404 error page. what could be the probable causes?
  • Brian Wong · 1 year ago
    Hi George,

    Make sure that step 4 and step 7 uses the same page. The most likely cause of your 404 error is that the permalink to your search results page is different from the one you specified in Step 4.
  • MARO · 1 year ago
    Hello Brian my name is maro. I commenting because I want to know if you could do a commentaries for us on iPod items that we have. Please write to me as soon as possible. Thank you!!!
  • MARO · 1 year ago
    Actually what I meant with the comment above was if you could do reviews. E-mail me...
  • gabor · 1 year ago
    Hi,

    Thanks for your article. I just ran into the problem that I can't override the searchbox width of 795.

    i have tried to do it by hand, but no avail.

    i normally use firefox, but i managed to slip through with 500 px width on one occasion only.

    Strange - anyone else experience the same thing?

    Anyone else find a work-around?

    cheers - thanks again!

    GJ
  • gabor · 1 year ago
    I think I just answered my own question....

    After some mucking about, I found that 795px is the minimum if you want ads on Top AND Right.

    I tried Top and Bottom and 500px worked just fine...
  • Brian Wong · 1 year ago
    Glad you worked it out and thanks for sharing the solution.
  • Shantanu Goel · 1 year ago
    Hey Brian
    Nice tutorial. Actually I just wrote a post a cpl of days ago telling ppl about how to add adsense for search to 404 pages here:
    http://tech.shantanugoel.com/2008/11/06/make-mo...

    But your way of telling things is quite easy to follow. Will link to your post from mine.
  • Doug Smith · 11 months ago
    Great idea! After a hack attempt on my blog where the hacker entered a malformed sql query into the WP search box I looked for other search ideas. The bug that allowed these hacks was fixed long ago but I felt uneasy that people were still trying. This idea allowed me to remove the WP search widget and monetize at the same time.

    Thanks again!