The automatic message reply for contact form submissions contains the subject: Thank you for your Message! As a matter of style, the ‘M’ should not be capitalized. I also want to change the subject line entirely. How can I do that? The following code added to the end of the function.php file did not work.
function avia_change_contact_form_args($form_args) {
$form_args['autoresponder_subject'] = __('Your case inquiry has been sent.','avia_framework' );
return $form_args;
}
Hey A!
Thank you for using Enfold.
The code is incomplete. Please try this:
add_filter( 'avia_contact_form_args', 'avia_contact_form_args_mod', 10, 1 );
function avia_contact_form_args_mod( $form_args ) {
$form_args['autoresponder_subject'] = __('Your case inquiry has been sent.','avia_framework' );
return $form_args;
}
Cheers!
Ismael
Ismael, thanks. Unfortunately that did not work and killed the whole website. The server no longer responded. When I removed it, the site worked again. I tried it twice.
Hi!
Have you copyed the code from the email, or the forums?
Cheers!
Basilis
Yes, I copied from the email. Rookie mistake! The code is now working. Thank you Ismael and Basilis.