📅  最后修改于: 2023-12-03 15:29:57.542000             🧑  作者: Mango
CF7 first_as_label is a WordPress plugin that allows you to use the first checkbox or radio button label as the form field label for Contact Form 7 forms. This plugin makes it easier to customize your form labels and create a better user experience for your visitors.
/wp-content/plugins/cf7-first-as-label
directory, or install the plugin through the WordPress plugins screen directly.To use the plugin, simply add the following code to your Contact Form 7 form where you want to use the first checkbox or radio button label as the form field label:
[checkbox* your-checkbox "First Checkbox|1" "Second Checkbox|2" "Third Checkbox|3"]
[radio your-radio "First Radio Button|1" "Second Radio Button|2" "Third Radio Button|3"]
Once you've added this code to your form, the plugin will automatically use the label of the first checkbox or radio button as the form field label.
You can configure the plugin by going to Settings->CF7 First as Label in your WordPress admin panel. Here, you can choose whether to use the plugin for checkboxes, radio buttons, or both. You can also choose to exclude certain forms from using the plugin.
Overall, CF7 first_as_label is a simple but powerful WordPress plugin that can help you improve the user experience of your Contact Form 7 forms by using the first checkbox or radio button label as the form field label. Its straightforward usage and configuration make it a great addition to any website with contact forms.