Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #517811

    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;
    }
    #518115

    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

    #518929

    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.

    #518939

    Hi!

    Have you copyed the code from the email, or the forums?

    Cheers!
    Basilis

    #518995

    Yes, I copied from the email. Rookie mistake! The code is now working. Thank you Ismael and Basilis.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Change contact form reply subject line’ is closed to new replies.