Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @legend1981,

    You can try to do this with jQuery.

    1. Please install and activate Insert Headers and Footers plugin that will allow you to insert JavaScript (jQuery) code.

    2. Go to your Dashboard → Settings → Insert Headers and Footers → add the following code to Scripts in Header section, and click Save button.

    <script>
        jQuery(document).ready(function(){
            jQuery('#submit').attr('value', 'Changed Text');
        });
    </script>

    Kind Regards, Roman.

    Thread Starter legend1981

    (@legend1981)

    Thank you so much for your help!

    P.S. Does this work also with a multi-language website? I.e. By using the Polylang plugin which creates duplicates of every page in one or more languages.
    In this case if I change the text of the button with the JQuery as you suggested, will this automatically be translated to the other languages or should I insert another code?

    Thanks!!

    @legend1981, please try to use this code for multilanguage website:

    <script>
        jQuery(document).ready(function(){
            jQuery('html[lang|=en] #submit').attr('value', 'Changed Text');
            jQuery('html[lang|=it] #submit').attr('value', 'Testo Modificato');
        });
    </script>

    Just change language code and text itself to meet your needs. You can add more languages as well.

    Kind Regards, Roman.

    Thread Starter legend1981

    (@legend1981)

    Roman thanks a million for the quick and super support!
    Keep up the good work!

    You are welcome @legend1981!

    It would be good if you mark this topic as Resolved ??

    Kind Regards, Roman.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change text of the button to post a comment’ is closed to new replies.