Blog coding and discussion of coding about JavaScript, PHP, CGI, general web building etc.

Friday, April 29, 2016

How can I change the text on

How can I change the text on "post comment" button?


I am building a site for some therapists using wordpress and am using the comment section of a post for a question and answer with the therapists. However I cannot find where the text is coming from on the "post comment" button. I would like to change it to "Post a Question".

The comments.php in the theme has nothing about it and I cannot find it anywhere in the main wp-comments-post.php

Any help would be great!

Thanks

The web address is http://s416809079.onlinehome.us/ask-the-therapist/

Edit: My confusion has been that I cannot find the 'post comment' anywhere. Also if I just add it then there becomes two buttons and the new one does not actually submit. Here is the code.

  

1 && get_option( 'page_comments' ) ) : ?> '

' . ' ' . ( $req ? '*' : '' ) . '

', 'email' => '

' . ( $req ? '*' : '' ) . '

', 'url' => '

' . '

', ); $defaults = array('fields' => apply_filters('comment_form_default_fields', $fields)); comment_form($defaults); ?>

Answer by Teena Thomas for How can I change the text on "post comment" button?


just search for the text post comment and change the value of the button tag for it,

     

Answer by SystemAccount for How can I change the text on "post comment" button?


Change the value attribute for the following input element:

  

If you do a search all files for "Post Comment" you should find what you are looking for.

Answer by Thakkennes for How can I change the text on "post comment" button?


set the value of the input to

Answer by James for How can I change the text on "post comment" button?


Under the class form-submit change the value.

Previous

...  

...

Change to

...  

...

Answer by maiorano84 for How can I change the text on "post comment" button?


The Comment Form Codex has everything you need to know about customizing the values of a Comment form.

$defaults = array(      'fields' => apply_filters('comment_form_default_fields', $fields),      'label_submit' => __('Post a Question')  );  comment_form($defaults);  

That should do what you need.


Fatal error: Call to a member function getElementsByTagName() on a non-object in D:\XAMPP INSTALLASTION\xampp\htdocs\endunpratama9i\www-stackoverflow-info-proses.php on line 72

0 comments:

Post a Comment

Popular Posts

Powered by Blogger.