Home Forums WoodMart support forum Hide the same attributes in filter of Category

Hide the same attributes in filter of Category

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #671177

    Gorcezan
    Participant

    Is it possible not to display these same attributes in the product category filter,
    but otherwise prevent display in categories of a higher level?

    Attachments:
    You must be logged in to view attached files.
    #671227

    Hello,

    Yes, it’s possible to control which attribute filters appear in specific categories using the WOODMART WooCommerce Layered Nav widget.

    Go to Appearance > Widgets > Add the WOODMART WooCommerce Layered Nav widget to the shop page widget area.

    In the widget settings, you will see an option to “Display only in selected category” – here, you can choose the specific product category where the attribute filter should appear: https://postimg.cc/MnywCrPV

    If you have any questions, feel free to contact us.

    Best Regards,

    #671287

    Gorcezan
    Participant

    Thanks but,
    if I specify for example to show an attribute in the parent category CategoryName_Par (ID:001),
    then the rule automatically applies to child categories.

    And I need the rule of display to be less important for the parents. For a child you need to hide.
    CanegoryName_Child (ID:002)CategoryName_Par (ID:001) (ID:002)

    The attribute indicates that I did not notice the name of the child category.

    #671397

    Hello,

    Yes, by default, if you assign an attribute to a parent category, it will also appear in all child categories. This is expected behavior because child categories inherit the filtering options of their parent unless specifically excluded.

    If you want to hide the attribute sidebar from the child categories, you can use WoodMart’s Layout Builder to assign custom layouts for individual child categories and disable the sidebar from child categories.

    For more details, you can check our documentation here:
    https://xtemos.com/docs-topic/woodmart-woocommerce-layout-builder/

    This way, each category can have its own unique layout, with an independent sidebar, giving you full control over which attributes are displayed.

    Hope this helps!

    Best Regards,

    #671446

    Gorcezan
    Participant

    thanks, but I would like to leave the sidebar, because I need to display attributes for filtering such as product color. That is, product weight, product composition, brand, article are the same everywhere, but different colors.
    Is it difficult to add a new tag to the functionality, such as
    (Parent ID:001) – which is only for the parent category
    CategoryName_Par (ID:001) – this record includes both parent and child

    #671499

    Hello,

    Currently, the WoodMart filtering system automatically inherits attribute visibility from the parent category to its child categories. This means if an attribute (like color) is assigned to a parent category, it will also be shown on its subcategories by default.

    If your goal is to show certain filters, like color only on specific categories, and hide them in child categories, there’s no built-in option in widgets for this.

    Alternatively, you can create a custom sidebar and add the filters you want:
    https://xtemos.com/docs-topic/sidebars/

    And use the Theme’s Layout Builder and choose the custom sidebar in the layout. This way, each layout can have its own sidebar and filtering widget, allowing you to manually include only the desired attributes:https://xtemos.com/docs-topic/woodmart-woocommerce-layout-builder/

    Best Regards,

    #671552

    Gorcezan
    Participant

    thanks for the help!

    #671641

    Hello,

    You’re very welcome! If you need anything else, feel free to reach out!

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards,

Tagged: 

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

The topic ‘Hide the same attributes in filter of Category’ is closed to new replies.