This topic has 14 replies, 2 voices, and was last updated 2 years, 3 months ago ago by Diana Nikolova
Hi, I’m asking for some help
I want the product categories to be hidden when I select for example: Electrical appliances and to see all subcategories related to this category
Hello,
Try to activate Advanced mode for the product categories widget (Theme Options > WooCommerce > Shop Elements > Categories)
Regards
This is how the following happens, the unnecessary categories disappear, but when I go to a subcategory it says “No product categories exist.”
Hello,
Update the theme and Core plugin.
Then provide URL of page with the problem, and temporary FTP access, then I will be able to pass this question to our dev team.
Regards
I did the update but it’s the same again.
The station is each of the store and categories
https://instore.bg/product-category/elektrouredi/
Hello,
We do not see the problem, please clear cache and check one more time – https://prnt.sc/iIFbn756Xka1
Regards
These subcategories are missing, but were previously displayed : https://prnt.sc/RBzjkSOLO2Tp
Hello,
By default, it shows only a few levels of categories and deeper levels are not possible to get without using bad code practice (which we would like to not use)
So, you may try the next workaround to get what you want to
1/ Disable Advanced mode of categories
2/ Add next custom css to Theme Options -> Theme Custom CSS -> Global CSS (or your child-theme/style.css)
.widget_product_categories.sidebar-widget ul li.current-cat-parent ~ li {
display: none;
}
Example: https://prnt.sc/F9BipCFD2T2I
Regards
Thanks, but when I added the css code it worked only for the first category “electrical devices”, for other subcategories there was no change and the other categories were not hidden.
When “Advanced Mode For The Product Categories Widget” is active
only cases with Main > subcategory > subcategory get this error ” No product categories exist. ”
If this problem can be solved?
Thank you for your time!
Hello,
Could you please, check now !
If you are on subcategory that has own subcategories they will be shown -> https://prnt.sc/CovoReDsOalx
But if you are on main category you will see only first level of categories -> https://prnt.sc/X-T2UQBtEWDs
It is the most possible solution we could include globally without breaking anything else for others.
Waiting for your reply !
Regards
NOW IS PERFECT <3 ! Thank you!!!!
I just have one last question: How do I stop this field from stretching, because then it can’t collapse https://prnt.sc/6IwS8lyZvZ2U
in checkout and contact form
Hello,
Try to use the next custom CSS code:
textarea, textarea.form-control {
resize: none;
}
Regards
Thank you!
Tagged: category, seo friendly, showing, subcategory, templates, woocommerce, wordpress
The issue related to '‘Category and subcategory showing’' has been successfully resolved, and the topic is now closed for further responses