Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1406296

    frankie_design
    Participant

    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 🙂

    #1406381

    Prasant Rai
    Moderator

    Hello 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.

    #1414254

    MacMartino
    Participant

    Well, 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.

    #1414278

    MacMartino
    Participant

    Found 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!

    #1414536

    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again

    Thanks.