Yes, you can add a “class” value to the attributes in the field definition, something like this:
class::custom-class
Thank you
it workered in the record page but not in the single record page. How can I get it work in both pages?
The custom class is really for the input forms, but I will add it to the single record templates, makes sense it would be there too. Look for an update to Participants Database soon.
I just checked the new update and it is still the same didn’t add a class to the single record page.
Sorry, it is working. But I am using template pdb-single-edit-button.php. How can I get it work with this template please?
Yes, the change had to be made in the templates, so it won’t carry over to custom templates unless they are updated.
The template you are using is based on the pdb-single-default.php template, you can compare the template you are using to it, and update the custom template to match. The difference is in how the class attribute is constructed in the “dl” tag.