How to resolve a problem where the Google Custom Search watermark does not appear if you display the same search box more than once on a page.
This error occurs only if you have designed a search box which has the Google Custom Search watermark (logo) within it – the first search box displays the watermark but subsequent boxes do not (even though the box works fine for searching).
The problem must be fixed – it is against the terms of Google’s Custom Search not to display attribution such as the watermark on each and every Custom Search Box. Failure to do so could result in your site being penalized or kicked out of their program.
I first encountered this error when trying to add a Custom Search box to our 404 (Page Not Found) error page – to provide a better option for users to find what they were looking for. As we already had an existing box (at the top right of our site) I just copied the code and a second search box was indeed displayed on our custom 404 page – but with the Google logo missing as shown below:
I wasted a long time recopying the code and looking for a solution but most discussions related to getting a single box working. I finally came across the cause of the error buried deep in a four year old Google forum thread so hopefully this may save someone time.
Cause Of The Missing Watermark
As the code for both boxes is the same, both contained the following two lines:
Fix The Missing Watermark