Category and subcategory showing - by Diana Nikolova

This topic has 14 replies, 2 voices, and was last updated 2 years, 3 months ago ago by Diana Nikolova

  • Avatar: Daniel Partadzhiev
    Diana Nikolova
    Participant
    August 2, 2022 at 09:39

    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

    https://prnt.sc/9DL0cqsdPSHU

    13 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 2, 2022 at 10:03

    Hello,

    Try to activate Advanced mode for the product categories widget (Theme Options > WooCommerce > Shop Elements > Categories)

    Regards

    Avatar: Daniel Partadzhiev
    Diana Nikolova
    Participant
    August 2, 2022 at 10:28

    This is how the following happens, the unnecessary categories disappear, but when I go to a subcategory it says “No product categories exist.”

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 2, 2022 at 10:36

    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

    Avatar: Daniel Partadzhiev
    Diana Nikolova
    Participant
    August 2, 2022 at 10:47

    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/

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 2, 2022 at 10:55

    Hello,

    We do not see the problem, please clear cache and check one more time – https://prnt.sc/iIFbn756Xka1

    Regards

    Avatar: Daniel Partadzhiev
    Diana Nikolova
    Participant
    August 2, 2022 at 11:15

    These subcategories are missing, but were previously displayed : https://prnt.sc/RBzjkSOLO2Tp

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 2, 2022 at 16:06

    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

    Avatar: Daniel Partadzhiev
    Diana Nikolova
    Participant
    August 2, 2022 at 17:40

    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. ”

    https://prnt.sc/yKf1HZOI17CY

    If this problem can be solved?

    Thank you for your time!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 3, 2022 at 07:47

    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

    Avatar: Daniel Partadzhiev
    Diana Nikolova
    Participant
    August 3, 2022 at 07:50

    NOW IS PERFECT <3 ! Thank you!!!!

    Avatar: Daniel Partadzhiev
    Diana Nikolova
    Participant
    August 3, 2022 at 07:54

    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

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 3, 2022 at 07:58

    Hello,

    Try to use the next custom CSS code:

    textarea, textarea.form-control {
        resize: none;
    }

    Regards

    Avatar: Daniel Partadzhiev
    Diana Nikolova
    Participant
    August 3, 2022 at 07:59

    Thank you!

  • Viewing 14 results - 1 through 14 (of 14 total)

The issue related to '‘Category and subcategory showing’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.