1. HOT Divi Ultimate Header Plugin - Design Divi custom header globally in Divi Builder: https://header.diviultimate.com/

How to make DIVI search like Wocommerce items search

Discussion in 'Get Help On Divi Wordpress' started by Haris Zahoor, Mar 25, 2018.

  1. Haris Zahoor

    Haris Zahoor New Member

  2. redefineseo

    redefineseo New Member

    Please install Advance Woo Search Plugin and add this search bar via widget
     
  3. websimple

    websimple New Member

    I do have the WooCommerce Product Search but I need to have it always on the top bar where the default divi search is located. Need to replace it. otherwise it is confusing because they do not search the same... Is there a way to make this happend ?
     
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    If you wish the default Divi search to search for Woo products only, then you will need to edit the header.php file.

    1. First, you will need to have a child theme installed.
    2. Then, duplicate the Divi header.php file in your child theme.
    3. Lastly, find the below:
    Code:
    <input type="search" class="et-search-field" placeholder="%1$s" value="%2$s" name="s" title="%3$s" />
    And replace with the below:
    Code:
    <input type="search" class="et-search-field" placeholder="%1$s" value="%2$s" name="s" title="%3$s" /><input type="hidden" name="post_type" value="product" />