Is there a way to hide specific categories (only two in this case) that are displayed using the [product_categories] shortcode? I have attempted to place these categories at the bottom of the list and used CSS to target them:
.home .woocommerce ul.products li:last-of-type {
display: none;
}
However, this method only hides the last category and not the second to last. Is there a CSS selector like "last-of-type minus one" that can be used?
I am starting to think that utilizing WordPress hooks may be a better approach than relying solely on CSS.
If you have any suggestions or insights, they would be greatly appreciated. Thank you!