Website search searches google instead of site

Discussion in 'HTML & Website Design' started by WonderingCoder, Oct 27, 2013.

  1. #1
    My website http://www.101baseballnews.com/ has a search in the top upper right corner.

    Whenever you search something, it searches it through GOOGLE and not the website.

    Example:
    I typed in "Yankees"
    It directed me to the google search of this:
    https://www.google.com/search?q=yankees+site%3A101baseballnews.com

    Help?!?
     
    WonderingCoder, Oct 27, 2013 IP
  2. malky66

    malky66 Acclaimed Member

    Messages:
    3,997
    Likes Received:
    2,248
    Best Answers:
    88
    Trophy Points:
    515
    #2
    Because that's what your form's action attribute is set to....
    <form method="get" id="search-form" action="https://www.google.com/search" target="_blank" class="gsc-search-box" accept-charset="utf-8">
    Code (markup):
     
    malky66, Oct 27, 2013 IP
  3. WonderingCoder

    WonderingCoder Greenhorn

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    8
    #3
    I searched for that link in my HTML code and couldn't find it.
     
    WonderingCoder, Oct 27, 2013 IP
  4. malky66

    malky66 Acclaimed Member

    Messages:
    3,997
    Likes Received:
    2,248
    Best Answers:
    88
    Trophy Points:
    515
    #4
    Using chrome hover over the search bar, right click, inspect element and you will see it
     
    malky66, Oct 27, 2013 IP
    PhilipSEO and ryan_uk like this.
  5. WonderingCoder

    WonderingCoder Greenhorn

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    8
    #5
    Ok.. so how do I fix it?
     
    WonderingCoder, Oct 28, 2013 IP
  6. KillaKeith

    KillaKeith Well-Known Member

    Messages:
    104
    Likes Received:
    12
    Best Answers:
    2
    Trophy Points:
    135
    #6
    Go to Google and create your own custom search box: https://www.google.com/cse/ and replace existing search box with the provided code.
     
    KillaKeith, Oct 30, 2013 IP