0

we are using custom theme and Magento ver. 2.3.3 version

Exclude specific Category from Layered Navigation:

please help me to find solution....

thanks in advance.

1

enter image description here

If you are asking to exclude a particular category displayed in the filter from the image shown. You need to override this file

vendor/magento/module-layered-navigation/view/frontend/templates/layer/filter.phtml

in your theme

app/design/frontend/[VENDOR_THEME_NAME]/[THEME_NAME]/Magento_LayeredNavigation/templates/layer/filter.phtml

Here you will get the filter items which will be rendered in layered navigation, where you can check for your custom category name or ID for which you want to exclude it from the loop so it wont be displayed in layered navigation.

1

This already answered here: https://magento.stackexchange.com/a/293019/80023

Basically, you remove your unwanted filters from \Magento\Catalog\Model\Layer\FilterList::getFilters

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.