Home › Forums › WoodMart support forum › Hide the same attributes in filter of Category
Hide the same attributes in filter of Category
- This topic has 7 replies, 2 voices, and was last updated 1 month ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
July 2, 2025 at 1:05 pm #671177
GorcezanParticipantIs 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.July 2, 2025 at 3:46 pm #671227
Aizaz Imtiaz AwanKeymasterHello,
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,
July 2, 2025 at 5:57 pm #671287
GorcezanParticipantThanks 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.
July 3, 2025 at 10:24 am #671397
Aizaz Imtiaz AwanKeymasterHello,
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,
July 3, 2025 at 12:34 pm #671446
GorcezanParticipantthanks, 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 childJuly 3, 2025 at 2:45 pm #671499
Aizaz Imtiaz AwanKeymasterHello,
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,
July 3, 2025 at 4:50 pm #671552
GorcezanParticipantthanks for the help!
July 4, 2025 at 9:05 am #671641
Aizaz Imtiaz AwanKeymasterHello,
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, -
AuthorPosts
Tagged: WoodMart
The topic ‘Hide the same attributes in filter of Category’ is closed to new replies.
- You must be logged in to create new topics. Login / Register