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

#   Label class for filters

##

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 8 months ago [\#288998](#288998) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  *[Label class for filters](/forum/50-feature-request/893992-label-class-for-filters#288998 "Hi,  Could hikashop consider to add classes for labels inside filters? We have modified administrator/components/com&#95;hikashop/classes/filter.php file for our needs but we hope this could be added by default. It's small improvement/code... I have attached screenshots.  It would allow to have different background color for color filtering using css and wont need any img src as per your documentation here:   www.hikashop.com/support/support/documen...by-color.html#filter  Cause now to have this you need to add some span class via characteristics values and this makes some issues for product import/export. Then you have to use css to hide it in cart view during checkout and so on...  I hope you see my point.  Thanks")* was created by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")*

Hi,

Could hikashop consider to add classes for labels inside filters?
We have modified administrator/components/com_hikashop/classes/filter.php file for our needs but we hope this could be added by default. It's small improvement/code...
I have attached screenshots.

It would allow to have different background color for color filtering using css and wont need any img src as per your documentation here: [ www.hikashop.com/support/support/documen...by-color.html#filter](https://www.hikashop.com/support/support/documentation/272-hikashop-display-by-color.html#filter)

Cause now to have this you need to add some span class via characteristics values and this makes some issues for product import/export. Then you have to use css to hide it in cart view during checkout and so on...

I hope you see my point.

Thanks

- [ ![Untitled&#95;2018-03-04.png](/forum/attachment/42844) ](/forum/attachment/42844 "...2018-03-04.png") [ ](/forum/attachment/42844?download=1 "...2018-03-04.png")
- [ ![filter&#95;2018-03-04.png](/forum/attachment/42845) ](/forum/attachment/42845 "...2018-03-04.png") [ ](/forum/attachment/42845?download=1 "...2018-03-04.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTM5OTItbGFiZWwtY2xhc3MtZm9yLWZpbHRlcnM/dG1wbD1tYXJrZG93bg==) 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: 86541
- Thank you received: 14304
-
-

8 years 8 months ago [\#289029](#289029) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Label class for filters](/forum/50-feature-request/893992-label-class-for-filters#289029 "Hi,  Could hikashop consider to add classes for labels inside filters? We have modified administrator/components/com&#95;hikashop/classes/filter.php file for our needs but we hope this could be added by default. It's small improvement/code... I have attached screenshots.  It would allow to have different background color for color filtering using css and wont need any img src as per your documentation here:   www.hikashop.com/support/support/documen...by-color.html#filter  Cause now to have this you need to add some span class via characteristics values and this makes some issues for product import/export. Then you have to use css to hide it in cart view during checkout and so on...  I hope you see my point.  Thanks")*

Hi,

That's a good idea. We'll add classes to them.

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 8 months ago [\#289057](#289057) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Label class for filters](/forum/50-feature-request/893992-label-class-for-filters#289057 "Hi,  Could hikashop consider to add classes for labels inside filters? We have modified administrator/components/com&#95;hikashop/classes/filter.php file for our needs but we hope this could be added by default. It's small improvement/code... I have attached screenshots.  It would allow to have different background color for color filtering using css and wont need any img src as per your documentation here:   www.hikashop.com/support/support/documen...by-color.html#filter  Cause now to have this you need to add some span class via characteristics values and this makes some issues for product import/export. Then you have to use css to hide it in cart view during checkout and so on...  I hope you see my point.  Thanks")*

Hi,

Great. Please don't forget that classes should be dynamic so we could have different css styling for it.

Thanks for listening to community.

Have a great day

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 7 months ago [\#290283](#290283) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Label class for filters](/forum/50-feature-request/893992-label-class-for-filters#290283 "Hi,  Could hikashop consider to add classes for labels inside filters? We have modified administrator/components/com&#95;hikashop/classes/filter.php file for our needs but we hope this could be added by default. It's small improvement/code... I have attached screenshots.  It would allow to have different background color for color filtering using css and wont need any img src as per your documentation here:   www.hikashop.com/support/support/documen...by-color.html#filter  Cause now to have this you need to add some span class via characteristics values and this makes some issues for product import/export. Then you have to use css to hide it in cart view during checkout and so on...  I hope you see my point.  Thanks")*

Hi,

Just after update to 3.4.0 i found that you only added label classes for radio buttons but not for checkboxes? ![:(](/media/kunena/emoticons/22.png ":(")

Is there a reason why? The checkbox allows to select more then one filtering...

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTM5OTItbGFiZWwtY2xhc3MtZm9yLWZpbHRlcnM/dG1wbD1tYXJrZG93bg==) 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: 86541
- Thank you received: 14304
-
-

8 years 7 months ago [\#290284](#290284) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Label class for filters](/forum/50-feature-request/893992-label-class-for-filters#290284 "Hi,  Could hikashop consider to add classes for labels inside filters? We have modified administrator/components/com&#95;hikashop/classes/filter.php file for our needs but we hope this could be added by default. It's small improvement/code... I have attached screenshots.  It would allow to have different background color for color filtering using css and wont need any img src as per your documentation here:   www.hikashop.com/support/support/documen...by-color.html#filter  Cause now to have this you need to add some span class via characteristics values and this makes some issues for product import/export. Then you have to use css to hide it in cart view during checkout and so on...  I hope you see my point.  Thanks")*

Hi,

I believe I've added the classes for both since the checkbox filters inherit from the radio filters.
If I've missed something I'll be happy to add it if you can provide more details.

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 7 months ago [\#290311](#290311) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Label class for filters](/forum/50-feature-request/893992-label-class-for-filters#290311 "Hi,  Could hikashop consider to add classes for labels inside filters? We have modified administrator/components/com&#95;hikashop/classes/filter.php file for our needs but we hope this could be added by default. It's small improvement/code... I have attached screenshots.  It would allow to have different background color for color filtering using css and wont need any img src as per your documentation here:   www.hikashop.com/support/support/documen...by-color.html#filter  Cause now to have this you need to add some span class via characteristics values and this makes some issues for product import/export. Then you have to use css to hide it in cart view during checkout and so on...  I hope you see my point.  Thanks")*

Hi,

That's strange after i switched to radio and back to checkbox the classes on labels started to show. Maybe some cache...
All working fine now.

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTM5OTItbGFiZWwtY2xhc3MtZm9yLWZpbHRlcnM/dG1wbD1tYXJrZG93bg==) 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.055 seconds

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