Hi @katrineds,
Can you please share your URL? Thanks.
I don’t have a URL to share. It’s on a very early stage. I LOVE Flash – but this webshop client wants search in the navigation bar, to serach for products, not posts and pages.
It’s something like this:
function wpse_search_filter( $query ) {
if ( $query->is_search ) {
$query->set( 'post_type', array('product') ); // setting post type as product (for woocommerce only)
}
return $query;
}
add_filter('pre_get_posts','wpse_search_filter');
But this doesn’t quite do the trick.
Hi @katrineds,
This feature is not available in the free theme. You can create this option using a child theme. Please visit: https://themegrill.com/blog/tutorial-creating-wordpress-child-theme/ for further information. Let us know if you get any confusion. Thanks.
Can you please confirm that IF I buy Flash Pro – I will get Woocommerce search option in navigation bar AND the search results will be displayed like products archives, not post lists? That’s the only reason I need pro.
Thanks in advance.
Hi @katrineds,
We have pass this feature to our development team and most probably this feature will be updated within a week in Flash Pro Version, we will let you know after it is released. Thanks.