[Skip to main content](#vessel-content)

#   Hide filter name if non value is visible

##

- **[nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")**
- [![nico1979's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31330-nico1979 "View nico1979's Profile") Topic Author
- [ Offline](/forum/user/31330-nico1979)

Less More

- Posts: 78
- Thank you received: 6
-
-

6 years 9 months ago -  6 years 9 months ago [\#314490](#314490) by [nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")  *[Hide filter name if no field is visible](/forum/45-filters-search/898954-hide-filter-name-if-non-value-is-visible#314490 "-- url of the page with the problem -- :   www.erboristeriazambrini.it/i-prodotti-del-momento  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2.26 -- Browser(s) name and version -- : Safari, Chrome, Firefox, Opera, etc.  Hi, If I set &quot;Dinamic display&quot; in the filter options, it is possible and correct that no fields are shown in the filter list on front end. The problem is that, if no fields are shown, the filter name is still shown. Is it possible to hide the filter name if no fields are shown? Thank you. Nico")* was created by *[nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")*

-- url of the page with the problem -- : [ www.erboristeriazambrini.it/i-prodotti-del-momento](https://www.erboristeriazambrini.it/i-prodotti-del-momento)
-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.14
-- PHP version -- : 7.2.26
-- Browser(s) name and version -- : Safari, Chrome, Firefox, Opera, etc.

Hi,
If I set "Dinamic display" in the filter options, it is possible and correct that no fields are shown in the filter list on front end.
The problem is that, if no fields are shown, the filter name is still shown.
Is it possible to hide the filter name if no fields are shown?
Thank you.
Nico

Last edit: 6 years 9 months ago by [nico1979](/forum/user/31330-nico1979 "View nico1979's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5ODk1NC1oaWRlLWZpbHRlci1uYW1lLWlmLW5vbi12YWx1ZS1pcy12aXNpYmxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

6 years 9 months ago [\#314491](#314491) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide filter name if non value is visible](/forum/45-filters-search/898954-hide-filter-name-if-non-value-is-visible#314491 "-- url of the page with the problem -- :   www.erboristeriazambrini.it/i-prodotti-del-momento  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2.26 -- Browser(s) name and version -- : Safari, Chrome, Firefox, Opera, etc.  Hi, If I set &quot;Dinamic display&quot; in the filter options, it is possible and correct that no fields are shown in the filter list on front end. The problem is that, if no fields are shown, the filter name is still shown. Is it possible to hide the filter name if no fields are shown? Thank you. Nico")*

Hi,

Well, there is no option for that.
That would require some development.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5ODk1NC1oaWRlLWZpbHRlci1uYW1lLWlmLW5vbi12YWx1ZS1pcy12aXNpYmxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")**
- [![nico1979's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31330-nico1979 "View nico1979's Profile") Topic Author
- [ Offline](/forum/user/31330-nico1979)

Less More

- Posts: 78
- Thank you received: 6
-
-

6 years 9 months ago [\#314520](#314520) by [nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")  Replied by *[nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")* on topic *[Hide filter name if non value is visible](/forum/45-filters-search/898954-hide-filter-name-if-non-value-is-visible#314520 "-- url of the page with the problem -- :   www.erboristeriazambrini.it/i-prodotti-del-momento  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2.26 -- Browser(s) name and version -- : Safari, Chrome, Firefox, Opera, etc.  Hi, If I set &quot;Dinamic display&quot; in the filter options, it is possible and correct that no fields are shown in the filter list on front end. The problem is that, if no fields are shown, the filter name is still shown. Is it possible to hide the filter name if no fields are shown? Thank you. Nico")*

I've found the solution.
Change product/filter.php on line 160

FROM:
if(!empty($html[$count])){

TO:
if(!empty($html[$count]) &amp;&amp; strpos(@$html[$count], 'checkbox') !== false){

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5ODk1NC1oaWRlLWZpbHRlci1uYW1lLWlmLW5vbi12YWx1ZS1pcy12aXNpYmxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

6 years 9 months ago [\#314525](#314525) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide filter name if non value is visible](/forum/45-filters-search/898954-hide-filter-name-if-non-value-is-visible#314525 "-- url of the page with the problem -- :   www.erboristeriazambrini.it/i-prodotti-del-momento  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2.26 -- Browser(s) name and version -- : Safari, Chrome, Firefox, Opera, etc.  Hi, If I set &quot;Dinamic display&quot; in the filter options, it is possible and correct that no fields are shown in the filter list on front end. The problem is that, if no fields are shown, the filter name is still shown. Is it possible to hide the filter name if no fields are shown? Thank you. Nico")*

Hi,

Yes, that's a solution if you're using checkboxes only for your filters.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5ODk1NC1oaWRlLWZpbHRlci1uYW1lLWlmLW5vbi12YWx1ZS1pcy12aXNpYmxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.109 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
