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

#   Adding CSS class to custom fields

##

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

Less More

- Posts: 57
- Thank you received: 1
-
-

10 years 4 months ago [\#246098](#246098) by [tariaki](/forum/user/43507-tariaki "View tariaki's Profile")  *[Adding CSS class to custom fields](/forum/32-content-creation/885695-adding-css-class-to-custom-fields#246098 "-- HikaShop version -- : HikaShop Business: 2.6.3 -- Joomla version -- : 3.6 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Firefox 46  Hey,  Is it possible to add different css classes to each cusrom field?  Thanks")* was created by *[tariaki](/forum/user/43507-tariaki "View tariaki's Profile")*

-- HikaShop version -- : HikaShop Business: 2.6.3
-- Joomla version -- : 3.6
-- PHP version -- : 5.6
-- Browser(s) name and version -- : Firefox 46

Hey,

Is it possible to add different css classes to each cusrom field?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODg1Njk1LWFkZGluZy1jc3MtY2xhc3MtdG8tY3VzdG9tLWZpZWxkcz90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14325
-
-

10 years 4 months ago [\#246102](#246102) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding CSS class to custom fields](/forum/32-content-creation/885695-adding-css-class-to-custom-fields#246102 "-- HikaShop version -- : HikaShop Business: 2.6.3 -- Joomla version -- : 3.6 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Firefox 46  Hey,  Is it possible to add different css classes to each cusrom field?  Thanks")*

Hi,

That shouldn't be necessary. You can target specific custom fields without having to do that.
For example, if you want to target only the input of the quantity custom field on your page, you could use that CSS:
\#hikashop_item_custom_quantity input{
}

But then, you can always override the view file where the fields you want to target are being displayed, to add custom CSS classes. But it's more complex as it will require to add some simple custom PHP code.

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

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