google custom search plugin


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 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
    • Design Lord, Child of Thor

    Also, the custom search engine can be previewed at 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

    The code i used for the plugin is here…

    <div id="cse-search-form" style="width: 100%;">Loading</div>

    <script src="; 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'] =;

    customSearchOptions['enableImageSearch'] = true;

    customSearchOptions['imageSearchOptions'] = imageSearchOptions; var customSearchControl = new

    '003219190287703772964:WMX-54945475', customSearchOptions);


    var options = new;


    customSearchControl.draw('cse-search-form', options);

    }, true);


    <link rel="stylesheet" href="; type="text/css" />

    <style type="text/css">

    input.gsc-input {

    border-color: #BCCDF0;


    input.gsc-search-button {

    border-color: #CECECE;

    background-color: #CECECE;


  • kriscone
    • Design Lord, Child of Thor

    Ok, i changed what I had in the plugin to JUST use the search ID code and now it is returning just results from my site


    But….it opens in a new tab and is hosted by google. I would like to show the results within my sites nav system…..

    So ideas how I can get it to show as part of my site…?

  • aecnu
    • WP Unicorn

    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
    • WP Unicorn

    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 :slight_smile:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.