0
As an example, I installed a plugin to add an attachment upload field in the Wordpress comments form- https://wordpress.org/plugins/comment-attachment/ How can I change the text in "attachmentRules" and "Choose file" using functions.php in my Child-Theme?
Comment form prtsc with open firebug: https://drive.google.com/file/d/0BwA1IuXMUSGIcG5CenFpMDB4RHM/view?usp=sharing
<!-- HTML começa aqui-->
<p class="comment-form-url comment-form-attachment"><label for="attachment">Adicione um anexo<small class="attachmentRules"> (Allowed file types: <strong>jpg, gif, png, pdf, doc, docx</strong>, maximum file size: <strong>2MB.</strong></small></label></p>
<p class="comment-form-url comment-form-attachment"><input id="attachment" name="attachment" type="file"></p>
<!-- HTML termina aqui -->
I added some filters in Child-Theme’s functions.php on the wordpress site I’m building, either after research or with the help of plugin authors. However, sometimes I do not find them and I see that I am very limited not knowing how to manipulate these variables in the different plugins that have the Features I need but rarely in English. If anyone can guess indications of how I can become more autonomous in these situations, it would be more valuable than any recipe for any particular situation. In Codecademy is taking some time to master php functions :/
– Rodrigo