Hello XTemos team,
I hope you’re doing well. I’m using the full screen search layout in the header, with AJAX search enabled and the product categories dropdown visible.
The issue is that the dropdown currently displays all product categories, including subcategories, which makes it difficult to navigate on stores with many sections.
I’ve seen that in your Megamarket demo, the search dropdown only shows top-level (parent) categories, which is exactly the behavior I’d like to achieve.
I’ve carefully checked all available settings under:
– Woodmart > Theme Settings
– Search configuration in the Header Builder
…but I couldn’t find any visual option to limit the dropdown to parent categories only.
Could you please confirm:
Is there a native way (without custom code) to make the search dropdown show only parent product categories, as in your Megamarket demo?
If not, is using the woodmart_product_categories_dropdown_args filter (with ‘parent’ => 0) the officially recommended way to achieve this?
Thank you very much in advance for your help. And congratulations on such an excellent theme.
Best regards,