Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi, you can add a filter for this. You can use the filters described in:
    /docs/flters/gwolle_gb_button.txt
    /docs/filters/gwolle_gb_write.txt
    They are included in the zupfile.

    The code you can add to your own plugin or to functions.php of your theme.

    Thread Starter Pablejacio

    (@pablejacio)

    I don’t understand, sorry.
    I don’t know wich line of the filters I had to add to functions.php.
    If you can help me, thanks.

    Thread Starter Pablejacio

    (@pablejacio)

    Any help with this, please?
    Thanks.

    Plugin Author Marcel Pol

    (@mpol)

    Hi, this text should do what you want. I hope it is clear this way what text you will want to change. Make sure the quotes are okay.

    You can place this code in functions.php of your theme.

    function my_gwolle_gb_button( $button ) {
            // $button is a string
            $button = '
                    <div id="gwolle_gb_write_button">
                            <input type="button" value="&raquo; Dejar una firma en el libro. (or any other text)" />
                    </div>';
            return $button;
    }
    add_filter( 'gwolle_gb_button', 'my_gwolle_gb_button', 10, 1 );
    
    function my_gwolle_gb_write( $form_html ) {
            // $form_html is a string
            $old = '?Firmar!';
            $new = 'Firmar (or anything you like)';
            $form_html = str_replace( $old, $new, $form_html );
            return $form_html;
    }
    add_filter( 'gwolle_gb_write', 'my_gwolle_gb_write', 10, 1 );

    Hi,
    I’m doing the website https://www.lesamisdethomas.fr with wiget and Canvas. I wish to change the name also because people asked me to personalize. So, I want to know for my part, how to install your code in the page ? I saw that there is several page function and I don’t want to destroy the website of the persons. Could you help me in this, please ? Thanks in advance. Carole.

    Thread Starter Pablejacio

    (@pablejacio)

    It worked very well.
    Thank you so much Marcel.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change button text’ is closed to new replies.