Remove “All categories” from searchbar dropdown

This list can be modified using WooCommerce filters. However, without a thorough testing I could not find a specific filter to help you. You might check the API for a better answer. Meanwhile, I have used this CSS snippet to successfully hide the “All Categories” entry from the drop-down selector: li.option[data-value=””] { display: none; } … Read more

Categories are not showing up according to the hierarchy

the categories can be order differently, it will depend of the arguments in the get_categories() function, once none is specified, it will assume the default. try this to have an idea: $cats = get_categories(); echo ‘<pre>’; print_r($cats); echo </pre>’; exit(); This will give you everything store in $cats variable. For example normally I use the … Read more

Images as Categories

Okay, this will be a 3 step process; Add a meta field to store the image in the category edit page. (Easiest way: ACF plugin) Create a short code to output HTML that retrieves that field and show them as the design you want. (In functions.php) (Optional) Edit your theme’s post template; remove the current … Read more