This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

help with custom search box

Resolved 2 replies premiumthemetheme-vantage
11 years ago · Last reply by Greg Priday 11 years ago

Hiya,
Not sure if you can help with this or not, but I’m building a public library website, so I needed a search that would search both our catalog and the website. Our IT guy gave me this code based on what we have on our current website (mesacountylibraries.org) and I just don’t know where to put it exactly…I’d like the search box to be here somewhere:
http://screencast.com/t/g6HbqPFAINaP

Should I use a text header widget? Put it in the header file (masthead.php)? If the theme updates, will I lose the code if I put it there? Also, I’m assuming any styles I apply need to be put in the custom CSS section?
TIA!
code he gave me:

<form id="searchform" onsubmit="return false;" name="searchform">
    <input placeholder="Keywords" id="lookfor" name="searchterms" size="25" type="text">
    <input id="searchbutton" name="submit" value="Search" type="button"
    onclick="var sf=document.searchform,l=sf.sengines.length-1;for (i=l;i>-1;i--){if(sf.sengines[i].checked){var submitTo=sf.sengines[i].value+escape(sf.searchterms.value)}}window.open(submitTo);return false;">
    <div class="search-options-header">
    <label><input name="sengines" value="http://mesa.marmot.org/Union/Search?searchSource=local&basicType=Keyword&genealogyType=GenealogyKeyword&lookfor=" class="input-header" checked="checked" type="radio">Catalog</label>
    <label><input name="sengines" value="http://mesacountylibraries.org/?s=" class="input-header" type="radio">Site</label>
    </div>
</form>

URL: http://caritaylor.com

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. wiredpoet 11 years, 9 days ago

    nevermind–got it :)

  2. Greg Priday Staff 11 years, 8 days ago

    Glad to hear you sorted it out! My suggestion would have been to add a text widget to the header widget area with the code your IT guys gave you :)

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread