- February 16, 2017 at 6:59 pm #11985
I’ve created a woocommerce shop for furniture (without payment function)
To the products I’ve created Product Cateogries :
when I do a search for example chairs
I get a result that shows everything with chairs but…. dont show the whole tree for the category.
My list contains several rows with chairs
chairs (this conten have the following tree: Outdoor furniture – Material – Teak – Chair. And that, or at least the two last words, do I want to be displayed.
in this link you can se two pictures that describes my problems in a more visual way.
I’m from Sweden so the language you see in the attached pictures is Swedish 🙂
I hope you can help me.
CarolineFebruary 17, 2017 at 11:51 am #11996
1. The layout issue, which pushes the site.
By default the plugin is set to display the results in a hover layout mode – which you might have changed accidentally. On the Layout Options -> Results layout panel you can chage it back with the Results layout position option: https://i.imgur.com/N093wjb.png
If I understand correctly you want to display the sub (child) categories of a category, even if the search phrase does not match it, only it’s parent. For that I’ve put together a quick code for you, which will parse the child categories for all the resulting categories, and add the to the results.
Try placing this code to the functions.php file in your currently active theme directory (copy from lin 3):Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.