Skip to main content

Custom field classes

This filter allows you to add custom CSS classes to the field element. You can use this filter to provide custom styles based on some attributes of the field.

add_filter('es_forms_block_field_style_classes', function(array $attributes): array {
return [
'input' => [
'custom-style'.
],
'select' => [
'default',
]
];
})