- Posts: 57
- Thank you received: 1
Adding CSS class to custom fields
10 years 2 months ago #246098
by tariaki
Adding CSS class to custom fields was created by tariaki
-- 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
-- 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 or Create an account to join the conversation.
10 years 2 months ago #246102
by nicolas
Replied by nicolas on topic Adding CSS class to custom fields
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.
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 or Create an account to join the conversation.
Time to create page: 0.142 seconds