Tagged: x
-
AuthorPosts
-
March 14, 2017 at 7:26 am #1406296
Hi,
I need to change the label of the “Submit” button in the post pages, under the comment text field.
How can I change this label, maybe without thid-parts plugin?Thanks 🙂
March 14, 2017 at 8:43 am #1406381Hello There,
Thanks for writing in!
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.
Then add following code into child theme function.php file:
<?php comment_form( array( 'comment_notes_after' => '', 'id_submit' => 'entry-comment-submit', 'label_submit' => __( 'Submit' , '__x__' ) ) ); ?>
Let us know how this goes!
Thanks.
March 20, 2017 at 5:07 pm #1414254Well, I tried it – as I have the same question.
But when I added your code under the ‘Additional’ line,
it resulted in an error on line 26 (the line that says <?php).
I tried removing the <?php piece, as this is already present on line 1.
But it had no result.I noticed in the inspector the line:
<input name=”submit” type=”submit” id=”entry-comment-submit” class=”submit” value=”Submit”>
Isn’t there a way to change this ‘Submit’ into another word?
And would any styling (standard is so basic) be possible, like a green background and text without the shadow?
The inspector says: input#entry-comment-submit.submit when i click on the button.March 20, 2017 at 5:35 pm #1414278Found it elsewhere on the forum:
Copy the wp-comments.php file of the x theme > view > renew
and Change the text in the submit button in this wp-comments.php file that you place in the
x-child > view > renew. does the job!March 20, 2017 at 9:44 pm #1414536Happy to hear that.
Feel free to ask us again
Thanks.
-
AuthorPosts