I need to change the message on the front-end next to the word count. As a (hopefully) temporary solution I changed your code at line 153 for the word counter inject by adding a span with an id around the words. This allows me to modify the words in CSS. Can you implement something like this or give the option in the cf7 shortcode? Here is what I did:
// inject our word counter
if( $atts['data-maxawc'] ) {
$validation_error .= '<span class="wpcf7awc-msg"><br/><input type="text" name="wcount_'. $atts['name'] .'" id="wcount_'. $atts['name'] .'" size="3" maxlength="'. ( $atts['data-maxawc'] % 10 ) .'" style="text-align:center; width: auto;margin-bottom: 5px;" value="" readonly="readonly" />
</span><span id="BDN-LTE-count-span"> words. Please limit to '. $atts['data-maxawc'] .' words or less '.$withoutspace.' </span>';
}
And my CSS changes the #BDN-LTE-count-span as needed. And YES, I know, “don’t ever change a plugins code.” Hence, can you add the feature?
]]>It works as expected, but there’s a big problem with the validation error, it can’t be translated to other languages.
The plugin is not ready for non English language.
]]>