Site icon Grace Themes

The Church ā€“ Contact form Character Set

Might I make a suggestion to improve the functionality of the Contact Form. I have noticed that when users of your contact form input non-latin characters sets into the various input fields (i.e. Greek and Russian in the case of our website) that the received email generates gibberish. The fix to this problem is quite simple having tested it myself: Change the following code - /wp-content/themes/the-church/inc/custom-functions.php line 609 from $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; to $headers .= "Content-type: text/html; charset=UTF-8\r\nā€; Using the UTF-8 character set is pretty standard in most email systems and allows for non-latin character sets to be sent over email systems. (NB: If one makes this change by manually editing The Church theme's custom-functions.php file as I did, it would only work until a future theme update replaces the file, assuming this fix is not adopted by Grace Themes, otherwise - happy days! The alternative might be a child-theme as editing the original theme files is usually discouraged.) Elsewhere, I might also suggest that the placeholder values (i.e. Name, Email, etc.) have an * symbol placed after values that are required input values (i.e. all input fields except the Website field), which is also the usual formatting used in form fields. Yours sincerely, Michael Wells
Exit mobile version