Before you ask please READ THIS

About Search

edited September 2014 in Fame Posts: 9
Hello, I've found the "WooCommerce product search"widget to work better(showing results like they would appear in the shop pages) than the usual "Wordpress search" widget, and I would like the Search button on the header to work like that one, is it possible?

Many thanks in advance

Alex

Comments

  • AirAir
    Posts: 10,970
    Hello:-)

    It is a great idea! To do it go to fame\advance\utilities\layout_parts.php line ~42 and change this
    
                            <input type="submit" id="searchsubmit' . $search_id . '" title="'. esc_attr( __fe('Search' ) ) .'" value=" " />
    
    to
    
                            <input type="submit" id="searchsubmit' . $search_id . '" title="'. esc_attr( __fe('Search' ) ) .'" value=" " />
                            <input type="hidden" value="product" name="post_type">
    
    I will try to include such option in next update.

    With regards.
  • Thanks man, works great!

    Looking at the file, I've also been able to translate the "Hide page preloader" which wasn't in the .po file, so double greatness!
  • AirAir
    Posts: 10,970
    Ooo thanks for info, I will update .po files:-)

    With regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!