google custom search plugin

Hi.
I installed this google custom search plugin and I thought I had it set up to display the results within my page and only search my site. I also paid google $100 to not have ads. When I use the plugin it goes to a page that has a bunch of ads, and only a few of my websites pages....
go to http://floorplanonline.com/ and then use the Search tool to the right of the rotating customer logos and see what you get.

I configured as separate custom search using the webmaster tools, and when I do that, it opens a new window and ONLY shows results from my page. While I would like it to be within my site, the results are what I am looking for.

The theme is an iThemes Builder child theme...not sure if it is an issue with the theme or the plugin? If theme then not sure why it is not at least pulling back search results from my site...

Help...I will also contact iThemes.

  • kriscone

    Also, the custom search engine can be previewed at http://www.google.com/cse/home?cx=003219190287703772964:WMX-54945475 where you can see that if you search for "ipad tour" for example, you will only see posts from our site on that topic.

    I do have specific views set up for 404 and search pages with Builder....but what is happening is when you search using your plugin it is not searching my site...it returns a bunch of junk. See the two screen shots for using the preview vs what I get with the actual stuff on my site at http://www.floorplanonline.com.

    The code i used for the plugin is here...
    <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'});
    google.setOnLoadCallback(function() {
    var customSearchOptions = {};
    var orderByOptions = {};
    orderByOptions['keys'] = [{label: 'Relevance', key: ''},{label: 'Date', key: 'date'}];
    customSearchOptions['enableOrderBy'] = true;
    customSearchOptions['orderByOptions'] = orderByOptions;
    var imageSearchOptions = {};
    imageSearchOptions['layout'] = google.search.ImageSearch.LAYOUT_POPUP;
    customSearchOptions['enableImageSearch'] = true;
    customSearchOptions['imageSearchOptions'] = imageSearchOptions; var customSearchControl = new google.search.CustomSearchControl(
    '003219190287703772964:WMX-54945475', customSearchOptions);
    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    var options = new google.search.DrawOptions();
    options.enableSearchboxOnly("http://www.google.com/cse?cx=003219190287703772964:WMX-54945475":wink:;
    customSearchControl.draw('cse-search-form', options);
    }, true);
    </script>
    <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
    <style type="text/css">
    input.gsc-input {
    border-color: #BCCDF0;
    }
    input.gsc-search-button {
    border-color: #CECECE;
    background-color: #CECECE;
    }</style>

  • aecnu

    Greetings kriscone,

    Thank you for letting us know the details and for sharing the cure to just getting your sites results, it is greatly appreciated.

    What happens if the Google embed code is placed directly in a page of your site not relative to the widget?

    Does it indeed become part of your site or does it still open in a new tab?

    I see that using custom css you can make it look similar to your site, but this is still not relative to a new tab.

    Please advise.

    Cheers, Joe

  • aecnu

    Greetings kriscone,

    It appears this particular topic is now resolved/closed, if you need any further assistance please let us know.

    If it wasn't resolved, or you have any more questions related to this thread, please feel free to post them below including any new symptoms or errors and tick the 'Mark as Not Resolved (re-open)' box below the post area (or else we'll miss it!)

    Thank you for being a WPMU Dev member!

    Cheers, Joe