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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator t-p

    (@t-p)

    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

    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.

    Thread Starter dalicen

    (@dalicen)

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

    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

    Thread Starter dalicen

    (@dalicen)

    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?

    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 (‘ ‘)

    Thread Starter dalicen

    (@dalicen)

    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.

    I will recheck on my test site

    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.

    Thread Starter dalicen

    (@dalicen)

    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.

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

    IT is looking for needle in haystack

    Thread Starter dalicen

    (@dalicen)

    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.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Wnat to change "Leave a Reply" to "Send Me a Question"’ is closed to new replies.