Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old January 20th, 2015, 10:28 AM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default search bar searching by tag instead of title

http://saveongolf.net
saveongolfcopy is the store

I just realized my main search bar is searching by tag rather than title or description. I forgot how to change that. Somewhere in the redesign it must have been switched. A search for "Titleist" for instance grabs all sorts of results from companies that for some unknown reason put other manufacturer names in their tags.

This is the code I'm looking at for simple search

<script type="text/javascript">
<!--
/*
* NOTE: This JS code would be much better off
* existing in your theme's header.php file.
*/
function wash( anInput ) { if(anInput.value == anInput.defaultValue) anInput.value = ''; }
function checkWash( anInput ) { if(anInput.value == '') anInput.value = anInput.defaultValue; }
//-->
</script>

<div class="store_search_form">
[search.form]
[search.name onfocus='wash(this);' onblur='checkWash(this);' value='Refine search...']
[search.submit title='Go']
<input type="checkbox" name="saleprice" value="1-" />On Sale
[/search.form]
</div>


...and this is the code in the widget area of my wordpress site!

<form role="search" method="get" id="searchform" class="search-form" action="/store/search/">
<div><label class="screen-reader-text" for="s">Search for:</label>
<input class="search-field" type="text" name="word" id="s" value="<?php echo esc_attr( @$_GET['word'] ); ?>">
<input class="search-submit" type="submit" id="searchsubmit" value="Search"><input name="saleprice" value="1-" type="checkbox"><strong style="color:#fff;margin-top: 5px; display: inline-table; margin-left: 5px; float: left;">On sale</strong>
</div></form>


Thanks!
ken

Last edited by yankeestonk : January 20th, 2015 at 10:43 AM. Reason: adding code
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
search box not searching datafeed results yankeestonk Questions 5 September 27th, 2014 10:04 AM
Search by title mcleare Questions 2 May 2nd, 2013 02:40 PM


All times are GMT -5. The time now is 12:53 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.