문제

How to hide the filer in product listing page without touching the code? Can I do it by CSS or javascript? Thank you

enter image description here

도움이 되었습니까?

해결책

For hide filter on specific category, please follow below steps:

  1. After login admin side, go to Catalog > Categories
  2. Select category and open Display Settings tab
  3. Set No in Anchor field
  4. Clear cache

다른 팁

Your question is pretty confusing as you want to hide it without touching code, but you also want to do it by CSS or JS which is code?

Either way, you can hide it with CSS by using this:

.sidebar .filter {
    display: none !important;
}

Although the better method would be to remove it with layout XML then you don't even need to load it, there's no point in loading a block just to always hide it.

Change the category design layout to 1 column : this layout is sans filters.

No code was harmed using this solution.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top