Need to change text in Submit_button
-
Hello.
I am totally new to this, i actually bought a WP design from a company that i cant reach anymore
So i started to read and understood the basic.
What i want to know is if i somehow need to change an image or what is going on since when i try to change the text in the editor by:
Generating a tag, change the class to submit_button an then label to “Skicka” instead of “send” i get this code: <p>[submit class:send_button “Skicka”]</p>
But still the page shows “submit” see here: https://screencast.com/t/cT5GpWfIjW
The code in contact-form-7/modules/submit.php (that says inactive after for some reason, do i need to switch this on some how?) is this:
<?php /** ** A base module for [submit] **/ /* Shortcode handler */ add_action( 'init', 'wpcf7_add_shortcode_submit', 5 ); function wpcf7_add_shortcode_submit() { wpcf7_add_shortcode( 'submit', 'wpcf7_submit_shortcode_handler' ); } function wpcf7_submit_shortcode_handler( $tag ) { $tag = new WPCF7_Shortcode( $tag ); $class = wpcf7_form_controls_class( $tag->type ); $atts = array(); $atts['class'] = $tag->get_class_option( $class ); $atts['id'] = $tag->get_option( 'id', 'id', true ); $atts['tabindex'] = $tag->get_option( 'tabindex', 'int', true ); $value = isset( $tag->values[0] ) ? $tag->values[0] : ''; if ( empty( $value ) ) $value = __( 'Send', 'wpcf7' ); $atts['type'] = 'submit'; $atts['value'] = $value; $atts = wpcf7_format_atts( $atts ); $html = sprintf( '<input %1$s />', $atts ); return $html; } /* Tag generator */ add_action( 'admin_init', 'wpcf7_add_tag_generator_submit', 55 ); function wpcf7_add_tag_generator_submit() { if ( ! function_exists( 'wpcf7_add_tag_generator' ) ) return; wpcf7_add_tag_generator( 'submit', __( 'Submit button', 'wpcf7' ), 'wpcf7-tg-pane-submit', 'wpcf7_tg_pane_submit', array( 'nameless' => 1 ) ); } function wpcf7_tg_pane_submit( &$contact_form ) { ?> <div id="wpcf7-tg-pane-submit" class="hidden"> <form action=""> <table> <tr> <td><code>id</code> (<?php echo esc_html( __( 'optional', 'wpcf7' ) ); ?>) <input type="text" name="id" class="idvalue oneline option" /></td> <td><code>class</code> (<?php echo esc_html( __( 'optional', 'wpcf7' ) ); ?>) <input type="text" name="class" class="classvalue oneline option" /></td> </tr> <tr> <td><?php echo esc_html( __( 'Label', 'wpcf7' ) ); ?> (<?php echo esc_html( __( 'optional', 'wpcf7' ) ); ?>) <input type="text" name="values" class="oneline" /></td> <td></td> </tr> </table> <div class="tg-tag"><?php echo esc_html( __( "Copy this code and paste it into the form left.", 'wpcf7' ) ); ?><input type="text" name="submit" class="tag" readonly="readonly" onfocus="this.select()" /></div> </form> </div> <?php } ?>
I have a similar problem with other buttons but if i figure out this i will be able to change them as well i think.
Would really appreciate some help here.
- The topic ‘Need to change text in Submit_button’ is closed to new replies.