• Resolved max@unlockchiropractic

    (@maxunlockchiropractic)


    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]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter max@unlockchiropractic

    (@maxunlockchiropractic)

    is there anyone that can help me with this please? i’d like to get it resolved soon. thanks for the reply and help in advance

    I would try putting everything below <style type=”text/css”> on the styling sheet in your theme template. And, I would put the scripting part of this code in the search results page of your theme template- in the location that you would like it to show up on your page.

    That’s what I would try. Maybe this will help you.

    Thread Starter max@unlockchiropractic

    (@maxunlockchiropractic)

    thank you for the reply. but i’m still not understanding something.

    are you saying that i should replace the code in the search results page of my theme template with the codes given by google?

    as for the styling sheet, where would i find <style type=”text/css”>??

    don’t you mean the style.css file? where should i insert the code in that file?

    thank you so much for your response. it is much appreciated! 🙂

    Thread Starter max@unlockchiropractic

    (@maxunlockchiropractic)

    nvm fixed it.

    Were you able to make it work like you want?

    Thread Starter max@unlockchiropractic

    (@maxunlockchiropractic)

    yes! thank you!

    however, i have a bit of an issue. If you do me a favor, go to my website: http://www.unlockchiropractic.com

    and type in “chiropractic” without the quote signs, and submit. you will see the result page. But here’s the issue, scroll down to the end of the page and you will see the search engine and social widgets and recent posts link sidebars. they are not beside the result page but below the result page.

    a member on here told me that

    You’ve got the sidebar inside <div id=”post-content”>.
    It should be outside and below it.

    i do not understand this part. Can you show me how should i fix this properly?

    I noticed that too. If you want to send the code (copy and paste) to my email. I will be glad to look at it and send it back to you. [ redacted, support is offered via the forums and not email ]

    Thread Starter max@unlockchiropractic

    (@maxunlockchiropractic)

    please check the email. i just emailed. thank you! 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Help with Google Custom Search Engine’ is closed to new replies.