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.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityIf 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.
This already answered here: https://magento.stackexchange.com/a/293019/80023
Basically, you remove your unwanted filters from \Magento\Catalog\Model\Layer\FilterList::getFilters