New Landing How can we help? Atelier Exclude Sub categories from shop sidebar

Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Atelier
  • #213684
    Tecnoled
    Member
    Post count: 38

    Hi,

    How can I exclude de sub-categories from the sidebar and remaining just the main categories like the print?

    Attachments:
    You must be logged in to view attached files.
    #213689
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Guess you are using the Woocommerce Product categories, try to remove the Hierarchy option.
    https://www.dropbox.com/s/3nmvdh18o9i9jsd/Screenshot%202015-09-16%2015.28.46.png?dl=0

    -Rui

    #213690
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Assuming you are using the WooCommerce Product Category widget, please use this to hide the child categories:

    .product-categories ul.children {
        display: none;
    }

    Thanks,
    David.

    #213701
    Tecnoled
    Member
    Post count: 38

    Thks both,

    I try both solutions and doesn’t work yet.

    Rui, I unselect and what happened is that the child category goes above and left align.
    David, when I put this line of code in custom css, they advert an error you can see it in the print

    Attachments:
    You must be logged in to view attached files.
    #213705
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    You can ignore those warnings, I overqualified the CSS selector to make it specific to that section.

    The CSS has hidden the child categories, that is what you requested?

    Cheers,
    David.

    #213722
    Tecnoled
    Member
    Post count: 38

    Hi,

    I have ignored but it remains equal.
    Maybe I’m doing something wrong.

    What i’m doing is:
    1) Product categories
    2) Insert a categorie
    3) insert a subcategorie under the main (father) categorie

    #213724
    Tecnoled
    Member
    Post count: 38

    A print just for a better comprehension

    Attachments:
    You must be logged in to view attached files.
    #213727
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Guess you just need to enable the Hierarchy option again so that David code can hide the children elements.

    -Rui

    #213743
    Tecnoled
    Member
    Post count: 38

    Done

    Thk both

    #213749
    David Martin – Support
    Moderator
    Post count: 20834

    Great, thanks Rui!
    – David.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register