Home › Pootlepress Academy Support Forums › Academy Support Forum › Misc › Canvas contact template change text on "SUBMIT" BUTTON
Tagged: canvas, change text, contact template, submit
- This topic has 4 replies, 2 voices, and was last updated 3 years, 9 months ago by
Annie.
-
AuthorPosts
-
February 24, 2016 at 10:11 pm #30757
Annie
ParticipantHI,
Is there a simple way to change the text “SUBMIT” on the submitBUTTON in Canvas contact template?
I used filters succesfully to translate the contactform itself, but the text on the “SUBMIT” button I could not find how to change that in filters?
Thanks,
AnnieFebruary 25, 2016 at 7:07 am #30766Jamie Marsland
KeymasterHi Annie,
It might be easier to use a dedicate form plugin like Ninja forms – it would give you more control and options,
Jamie
February 25, 2016 at 11:30 am #30774Annie
ParticipantHi Jamie,
Sure I am aware of that and have an unlimited licence for Gravity Forms :-)
The reason why I would like to use the already integrated contact form of Canvas, is to avoid an extra plugin and be able to provide low budget websites for clients that don’t need a fully cusomizable contactform.
I got the whole form translated using these filters in the themes functions.php:
add_filter(‘gettext’, ‘translate_text’); add_filter(‘ngettext’, ‘translate_text’); function translate_text
($translated) { $translated = str_ireplace(‘Message’, ‘Bericht’, $translated); $translated = str_ireplace
(‘Name’, ‘Naam’, $translated); $translated = str_ireplace(‘Submit comment’, ‘Reageer’, $translated);
$translated = str_ireplace(‘View all posts by’, ‘Bekijk alle berichten van’, $translated); $translated =
str_ireplace(‘No comments yet’, ‘Nog geen reacties’, $translated); $translated = str_ireplace(‘About’, ‘Over’,
$translated);$translated = str_ireplace(‘Solve’, ‘Los op’, $translated); $translated = str_ireplace(‘Search’,
‘Zoeken’, $translated); $translated = str_ireplace(‘Send a copy of this email to yourself’, ‘Stuur een kopie van deze mail naar jezelf’, $translated); return $translated; }
However this does not seem to translate the “submit” button. Even translating it with “Loco translate” does not change that text, and I used this to translate the Sensei plugin so I think I do this correctly.
Could it be this button is not part of the Canvas theme but WP core somehow? One would think not, because it is a Canvas Contact template right?
I thought you might have a quick Canvas trick for this, being the Canvas experts and all, but I might try at Woothemes if you do not know how to get this translated?
Thanks,
AnnieFebruary 29, 2016 at 5:21 pm #30947Jamie Marsland
KeymasterHi Annie,
Sorry I don’t have a quick fix to hand for this one :(
It is part of canvas so should be in there somewhere,
Jamie
February 29, 2016 at 9:18 pm #30969Annie
ParticipantOk, thanks Jamie!
-
AuthorPosts
- You must be logged in to reply to this topic.