Adding CSS class to custom fields

  • Posts: 57
  • Thank you received: 1
7 years 9 months ago #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

Please Log in or Create an account to join the conversation.

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
7 years 9 months ago #246102

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 or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum