Help with Google Custom Search Engine
-
Hi, I like some help with Google custom search engine. here’s my website: http://www.unlockchiropractic.com
you’ll notice the search engine. But i’d like to convert that into a Google custom search engine. I want the results to be displayed where the latest posts are being displayed on front page. How do I make this happen?
i’d appreciate any help. Thanks!
i just went to google and made a custom search engine.
this is the code where the search engine bar is suppose to be. Where should i put it?
<div id="cse-search-form" style="width: 100%;">Loading</div> <script src="http://www.google.com/jsapi" type="text/javascript"></script> <script type="text/javascript"> google.load('search', '1', {language : 'en', style : google.loader.themes.V2_DEFAULT}); google.setOnLoadCallback(function() { var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl( '012474349042792806020:hc7lkvh-1r4', customSearchOptions); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); var options = new google.search.DrawOptions(); options.setSearchFormRoot('cse-search-form'); customSearchControl.draw('cse', options); }, true); </script> <style type="text/css"> .gsc-control-cse { font-family: Arial, sans-serif; border-color: #FFFFFF; background-color: #FFFFFF; } .gsc-control-cse .gsc-table-result { font-family: Arial, sans-serif; } input.gsc-input, .gsc-input-box, .gsc-input-box-hover, .gsc-input-box-focus { border-color: #D9D9D9; } input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:focus { border-color: #2F5BB7; background-color: #357AE8; background-image: none; filter: none; } .gsc-tabHeader.gsc-tabhInactive { border-color: #CCCCCC; background-color: #FFFFFF; } .gsc-tabHeader.gsc-tabhActive { border-color: #CCCCCC; border-bottom-color: #FFFFFF; background-color: #FFFFFF; } .gsc-tabsArea { border-color: #CCCCCC; } .gsc-webResult.gsc-result, .gsc-results .gsc-imageResult { border-color: #FFFFFF; background-color: #FFFFFF; } .gsc-webResult.gsc-result:hover, .gsc-imageResult:hover { border-color: #FFFFFF; background-color: #FFFFFF; } .gs-webResult.gs-result a.gs-title:link, .gs-webResult.gs-result a.gs-title:link b, .gs-imageResult a.gs-title:link, .gs-imageResult a.gs-title:link b { color: #1155CC; } .gs-webResult.gs-result a.gs-title:visited, .gs-webResult.gs-result a.gs-title:visited b, .gs-imageResult a.gs-title:visited, .gs-imageResult a.gs-title:visited b { color: #1155CC; } .gs-webResult.gs-result a.gs-title:hover, .gs-webResult.gs-result a.gs-title:hover b, .gs-imageResult a.gs-title:hover, .gs-imageResult a.gs-title:hover b { color: #1155CC; } .gs-webResult.gs-result a.gs-title:active, .gs-webResult.gs-result a.gs-title:active b, .gs-imageResult a.gs-title:active, .gs-imageResult a.gs-title:active b { color: #1155CC; } .gsc-cursor-page { color: #1155CC; } a.gsc-trailing-more-results:link { color: #1155CC; } .gs-webResult .gs-snippet, .gs-imageResult .gs-snippet, .gs-fileFormatType { color: #333333; } .gs-webResult div.gs-visibleUrl, .gs-imageResult div.gs-visibleUrl { color: #009933; } .gs-webResult div.gs-visibleUrl-short { color: #009933; } .gs-webResult div.gs-visibleUrl-short { display: none; } .gs-webResult div.gs-visibleUrl-long { display: block; } .gs-promotion div.gs-visibleUrl-short { display: none; } .gs-promotion div.gs-visibleUrl-long { display: block; } .gsc-cursor-box { border-color: #FFFFFF; } .gsc-results .gsc-cursor-box .gsc-cursor-page { border-color: #CCCCCC; background-color: #FFFFFF; color: #1155CC; } .gsc-results .gsc-cursor-box .gsc-cursor-current-page { border-color: #CCCCCC; background-color: #FFFFFF; color: #1155CC; } .gsc-webResult.gsc-result.gsc-promotion { border-color: #F6F6F6; background-color: #F6F6F6; } .gsc-completion-title { color: #1155CC; } .gsc-completion-snippet { color: #333333; } .gs-promotion a.gs-title:link, .gs-promotion a.gs-title:link *, .gs-promotion .gs-snippet a:link { color: #1155CC; } .gs-promotion a.gs-title:visited, .gs-promotion a.gs-title:visited *, .gs-promotion .gs-snippet a:visited { color: #1155CC; } .gs-promotion a.gs-title:hover, .gs-promotion a.gs-title:hover *, .gs-promotion .gs-snippet a:hover { color: #1155CC; } .gs-promotion a.gs-title:active, .gs-promotion a.gs-title:active *, .gs-promotion .gs-snippet a:active { color: #1155CC; } .gs-promotion .gs-snippet, .gs-promotion .gs-title .gs-promotion-title-right, .gs-promotion .gs-title .gs-promotion-title-right * { color: #333333; } .gs-promotion .gs-visibleUrl, .gs-promotion .gs-visibleUrl-short { color: #009933; }</style>what about this code for the results? where should i put it as well?
<div id="cse" style="width:100%;"></div>[please allow more time to get a reply – if it is urgent consider to post a job]
The topic ‘Help with Google Custom Search Engine’ is closed to new replies.