Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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!