Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter david199

    (@david199)

    Thanks a lot.
    Solved

    Thread Starter david199

    (@david199)

    Thanks for your response.
    product-searchform.php doesn’t exist. I created and pasted this code:

    <form role="search" method="get" class="woocommerce-product-search" action="<?php echo esc_url( home_url( '/'  ) ); ?>">
    	<label class="screen-reader-text" for="s"><?php _e( 'Search for:', 'woocommerce' ); ?></label>
    	<input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search Products&hellip;', 'placeholder', 'woocommerce' ); ?>" value="<?php echo get_search_query(); ?>" name="s" title="<?php echo esc_attr_x( 'Search for:', 'label', 'woocommerce' ); ?>" />
    	<input type="submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'woocommerce' ); ?>" />
    	<input type="hidden" name="post_type" value="product" />
    </form>

    But it doesn’t make any changes.
    Am i doing right?

Viewing 2 replies - 1 through 2 (of 2 total)