Hello. Thank you for contacting the Toolset support.
Can you please share problem URL where you added the relationship form and tell me for what field (parent or child) you want to adjust what width and what font you want t change?
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
As you can see with the description provided for both Class and Style attribute:
- class. Optional. For defining additional class names for this selector. Note that this gets applied to the select dropdown behind the select2 instance.
- style. Optional. For defining additional styles for this selector. Note that this gets applied to the select dropdown behind the select2 instance.
The class and style attribute you will apply will have effect on the select dropdown that is rendered behind the select2 so it will not be visible at all as select2 is overriding the current behavior. If you will check the page source you will notice that the class and style you set from form editor is actually applied to select dropdown which is hidden but not to the visual select2.
The only way to target the select2 element which is visual that you should target the element and add your custom CSS accordingly as per your requirement.
The solution you gave me works, but setting the class toolset_select2-container as you defined it sets the select box's properties regardless of whether you use it in the relationship role short code or not.
I got the feeling that setting the class and style parameters do nothing in the cred-relationship-role short code.
Is this correct?
If this is the case, they shouldn't be mentioned in the documentation.