WordPress.org

Ready to get started?Download WordPress

Forums

Wnat to change "Leave a Reply" to "Send Me a Question" (14 posts)

  1. dalicen
    Member
    Posted 3 years ago #

    Greetings, wonderful helpers!

    Here are the next two things I want to change in twenty ten:

    In the section for leaving comments, there's the line of text that reads "Leave a Reply. I want to change that to "Send Me a Question."

    Also, the button for submitting the comment/question is labeled "Post Comment." I want to change it to "Submit."

    Any help on accomplishing these changes HUGELY appreciated.

  2. Tara
    Member
    Posted 3 years ago #

    you theme might have a comments.php; edit this;

    look for comment_form()

    you could do something like this:

    <?php comment_form(array('comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '
    Send Me a Question</p>')); ?>

    Documentation:
    http://codex.wordpress.org/Function_Reference/comment_form

  3. govpatel
    Member
    Posted 3 years ago #

    In the section for leaving comments, there's the line of text that reads "Leave a Reply. I want to change that to "Send Me a Question."

    Also, the button for submitting the comment/question is labeled "Post Comment." I want to change it to "Submit."

    To change the you will need to change it in core file and you need remember that if you make a change and you update wordpress the file will be over written and you will have to change that file again.

    Its very simple you will need use ftp or server editor to make change.

    Browse to wp-includes/comment-template.php

    open comment-template.php in editor and scroll all way the down

    and look for this

    'id_form'              => 'commentform',
    		'id_submit'            => 'submit',
    		'title_reply'          => __( 'Leave a Reply' ),
    		'title_reply_to'       => __( 'Leave a Reply to %s' ),
    		'cancel_reply_link'    => __( 'Cancel reply' ),
    		'label_submit'         => __( 'Post Comment' ),

    You make change Leave a Reply and Post Comment and save the file and upload back if you used ftp if you used server editor then your file is saved.

    You may have to refresh to see the change.

  4. dalicen
    Member
    Posted 3 years ago #

    You make change Leave a Reply and Post Comment and save the file and upload back if you used ftp if you used server editor then your file is saved.

    You may have to refresh to see the change.

    Thanks bunches! That worked. Next question:Now when a message is submitted, a response pops up on the page that reads:

    [Submitter's name] says:
    Your comment is awaiting moderation."

    I tried editing the code so it would show the submitter's name, followed by a comma, and then "Thanks! I'll get back to you shortly!" but my efforts resulted only in error messages and the page not loading at all.

    I would like to make the change as described in the paragraph above, OR just disable entirely the response that pops up on the page after an inquiry is submitted. Any help you can provide is HUGELY appreciated!!

  5. govpatel
    Member
    Posted 3 years ago #

    In the same file look for this it is little above where you made change

    <?php if ($comment->comment_approved == '0') : ?>
    		<em><?php _e('Your comment is awaiting moderation.') ?></em>
    		<br />

    Change that sentence

  6. dalicen
    Member
    Posted 3 years ago #

    Tried that already--and again just now. Here's what I get:

    Parse error: syntax error, unexpected T_STRING in /home/dalicen/public_html/dr(snip)info/wp-includes/comment-template.php on line 1359

    Any chance there's an easy way to disable the after-submission response entirely?

  7. govpatel
    Member
    Posted 3 years ago #

    did you just change the sentence

    Your comment is awaiting moderation.

    as that should not give you error recheck leave all the rest as is you must have deleted (' ')

  8. dalicen
    Member
    Posted 3 years ago #

    as that should not give you error recheck leave all the rest as is you must have deleted (' ')

    I agree that simply changing the sentence shouldn't give me an error message, but it does. (' ') remained intact--just changed the copy in between.

    Sigh.

  9. govpatel
    Member
    Posted 3 years ago #

    I will recheck on my test site

  10. govpatel
    Member
    Posted 3 years ago #

    I know why you getting error we have been adding
    Thanks! I'll get back to you shortly!

    we using ' I'll this is giving error

    Try

    Thanks I will get back to you shortly.

  11. dalicen
    Member
    Posted 3 years ago #

    Tried that. No more error message, BUT--would you believe?--I still get "Your comment is awaiting moderation," rather than "Thanks I will get back to you shortly."

    What a puzzle.

  12. govpatel
    Member
    Posted 3 years ago #

    THen looks like it coming some where else back to finding it where it is coming from.

  13. govpatel
    Member
    Posted 3 years ago #

    IT is looking for needle in haystack

  14. dalicen
    Member
    Posted 3 years ago #

    You're a mensch! Alternatively, it really would be fine with me to just disable the automatic response to someone submitting a comment. But I suspect that once you've got a puzzle like this, you really want to track it down. Maybe you should brand yourself as The Code Bloodhound.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.