Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Google Custom Search Engine

Hi all. Can someone kindly walk me through how to cutomize the Custom Search Engine of Google please. I have the code in my site, and it does work fine, but the UI is not so good looking.

3 Answers

Perhaps posting the code will get you more interest! People are much more willing to help "on the spot" if the code is presented first hand. :)

James Barnett
James Barnett
39,199 Points

@Paul - If you post a link to your site you might have more luck in someone wanting to take a look at the specific issue you are having.

Hi all. The site is at http://walkways.co.nz. I wouldn't mind a website feedback.

The code is from Google: <script> (function() { var cx = 'This section contains a unique ID which I removed.'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); })(); </script> <gcse:search>/gcse:search

Thanks much!