Canvas contact template change text on "SUBMIT" BUTTON

Home Pootlepress Academy Support Forums Academy Support Forum Misc Canvas contact template change text on "SUBMIT" BUTTON

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30757
    Canvas contact template change text on "SUBMIT" BUTTON 2Annie
    Participant

    HI,

    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,
    Annie

    #30766
    Canvas contact template change text on "SUBMIT" BUTTON 3Jamie Marsland
    Keymaster

    Hi Annie,

    It might be easier to use a dedicate form plugin like Ninja forms – it would give you more control and options,

    Jamie

    #30774
    Canvas contact template change text on "SUBMIT" BUTTON 2Annie
    Participant

    Hi 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,
    Annie

    #30947
    Canvas contact template change text on "SUBMIT" BUTTON 3Jamie Marsland
    Keymaster

    Hi 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

    #30969
    Canvas contact template change text on "SUBMIT" BUTTON 2Annie
    Participant

    Ok, thanks Jamie!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Scroll to Top