LayersPro – Change the search button function?

Asked on January 6, 2016 in How To.

Hello ,

I have LayersPro & Woocommerce installed and i was looking at the Search option
i enabled it and it gave me a search icon in the menu bar , now when i try search a product it gives me a blog post page.

is it possible to change the function from blog post to woocommerce products?
i really like the design of this search function thats why i would like it.

Thanks
Dieter

Dieter Jeanty Layers User
Reply
1 Answer(s)
Answered on January 7, 2016.

Hi there,

WooCommerce has a proprietary search just for products – Layers Pro uses the core WordPress search which only knows how to search it’s default content types. You can find plugins that will add custom post types to the default search, allowing it to also search products. I would recommend that over attempting to change the search functionality. To do that you would need a child theme, and then a custom function that loads your custom version of that search or filters the code in Pro (I can’t even guarantee that is possible as I haven’t tried it).

Thanks for the info , i will prob leave it out because it is not really necessary but was nice as design.

on January 7, 2016.
Reply