How to hide the filter column of the store component conditionaly?

Question:
I want to hide the side filter column of the store page if a given product category is selected. For instance, if in the URL query param there is an entry for a given category, I want to hide the filter, otherwise the filter remains.

I tried to select only the filter via the Velo API but I could not find a way, it only allowed me to select the entire component (including filter and product cards). And I was not able to use DOM manipulation directly - apparently it’s not possible to do that in the dev tools.

Any suggestion on how to do it?

My code so far:

I found a way of doing it with a custom script.

But let me know if there is a proper way of doing it via Velo.

Thanks

As long as you do not use to much predefined stuff and generate all elements, functions & features by your own β†’ wix works.

As soon as you start to use PREDEFINED-WIX-STUFF only β†’ you get problems.
Like you already mentioned β†’ you start to search for WORKAROUNDS to work around restrictions, because predefined stuff like Wix-APPs are not really capable to cover all of users wished features & functions β†’ this is where CUSTOM-CODE comes into place.

The bad thing β†’ if there are no APIs you can use β†’ the problems start to get bigger and bigger and it starts to get harder to find a WORKAROUND.

This is normal on the Wix Platform.

But the good thing is β†’ there is always a way for self created stuff using CUSTOM-ELEMENTS or HTML-COMPONENTS.

But WIX is surely working on new expanded APIs to improve customization capabilities & possibilities. :grinning:

I hope so.