I am also having this issue, my form is located in the footer widget section.
I am trying to convert my input labels into Simplified Chinese. I have found that the input fields work accordingly on our testing server – running latest version of PHP, however our live server – running version 5.3 does not. This may cause the issue. For legacy reasons it is not appropriate to update our server. For your situation (if you haven’t checked already) it may be worth investigating this.
I am left to try and edit plugin code; as far as I am aware the file named: form.php is the closest I have come to output of this form, but this file seems to only get called when you submit it. Initially (on page load) I cannot seem to locate where this form is being outputted.
Hopefully someone else has had better luck?
Thread Starter
NEO117
(@neo117)
I managed to fix it. Just go to your themes functions.php and add this.
function widget_name($widget) {
$widget = str_replace('word', 'chinese_word', $widget);
return $widget;
}
add_filter('constant_contact_form', 'widget_name');
Remember to change widget_name, word and chinese_word to your desired values. Repeat this for all words.
For example:
function contactme($widget) {
$widget = str_replace('Name', '名字', $widget);
return $widget;
}
add_filter('constant_contact_form', 'contactme');
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
You are a legend, this works brilliantly and doesn’t directly mess with the plugin files! Thank you, massive help