WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Change title comment form (15 posts)

  1. bertrand14
    Member
    Posted 2 years ago #

    Hello,

    I would like to how to change the title of each box in the comment form (Name, Email, Website, Comment).

    I am using a french version, and the french version make it displays strangely as the French title are longer (http://img15.hostingpics.net/pics/907839wordpresscomment.png ). As you can see, I would like to change the long "Adresse de contact" to "email" and "Commentaire" to "Comment" in french.

    I went to language folder, open the file po FR_fr, look for "Adresse de contact" and change it to what I want. I save and updated the file po FR_fr in my folder.

    The problem is that - NOTHING - changed. It is still the same as before.

    Can somebody help me and tell me what wrong I did with it ? Thanks in advance.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Have you tried looking in your theme's comments.php template file?

  3. bertrand14
    Member
    Posted 2 years ago #

    Hello esmi,

    Thank you for you answer.

    Indeed, I checked my theme's comment.php template file but it looks like there is nothing with it (only code concerning comment navigation and comments displaying). In english version, it is working perfect. But in French no, that's why I thought it was coming from french languages files.

    Please help.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Does comments.php include the line <?php comment_form();?>?

  5. bertrand14
    Member
    Posted 2 years ago #

    Yes, it is containing this line at the very end of the comment.php file !

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    The text you need to change could be somewhere in your theme's functions.php file. The callback function that is being used should be mentioned in comment_form() - which should narrow the search down for you.

  7. bertrand14
    Member
    Posted 2 years ago #

    Thank you for your help.

    I looked each line in the functions.php file and there is nothing. The only form there is the form function for my contact page.

    Nothing about post comment... :(

    I dont know what more to do..

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    In that case, you need to have a look at http://codex.wordpress.org/Function_Reference/comment_form

    Your theme is probably using the default form parameters at the moment.

  9. bertrand14
    Member
    Posted 2 years ago #

    Thank you, your link was helpful (it helped me to fix one other thing I was wondering how to do it).

    But, still, I didn't suceed to understand and find how to change the form thing. Damn it :-(

  10. bertrand14
    Member
    Posted 2 years ago #

    Maybe just a way to put the boxes at the line (boxes under name, email, comments) that would fix it ? As the translation correction doesn't work.

    How can I do that?!

  11. bertrand14
    Member
    Posted 2 years ago #

    Maybe just a way to put the boxes at the line (boxes under name, email, comments) that would fix it ? As the translation correction doesn't work.

    How can I do that?!

    Someone to help me please?

  12. blade18rivers
    Member
    Posted 1 year ago #

    I have the same problem.

    I'm using Magazine Basic theme.

    http://www.philippinesangeles.com

    And in the comments portion there are default fields like Name, Email, Website.

    I would like to edit the "website" field into "Telephone" and the phrase
    "Your email address will not be published. Required fields are marked *"

    into

    "Your email address and telephone will not be published. Required fields are marked *"

    But don't know how to do it.

  13. blade18rivers
    Member
    Posted 1 year ago #

    BELOW IS WHAT I FIND IN MY comments.php...

    <div id="comments">
    <?php if ( post_password_required() ) : ?>
    				<div class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'magazine-basic' ); ?></div>
    			</div><!-- .comments -->
    <?php
    		return;
    	endif;
    ?>
    
    <?php
    	// You can start editing here -- including this comment!
    ?>
    
    <?php if ( have_comments() ) : ?>
    			<h3 id="comments-title">
    <?php
        printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'magazine-basic' ),
            number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
    ?>
                </h3>
    
    <?php if ( get_comment_pages_count() > 1 ) : // are there comments to navigate through ?>
    			<div class="navigation">
    				<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'magazine-basic' ) ); ?></div>
    				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'magazine-basic' ) ); ?></div>
    			</div>
    <?php endif; // check for comment navigation ?>
    
    			<ol class="commentlist">
    				<?php wp_list_comments( array( 'callback' => 'pbt_mytheme_comment', 'reply_text' => __('Reply', 'magazine-basic') ) ); ?>
    
    <?php if ( get_comment_pages_count() > 1 ) : // are there comments to navigate through ?>
    			<div class="navigation">
    				<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'magazine-basic' ) ); ?></div>
    				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'magazine-basic' ) ); ?></div>
    			</div>
    <?php endif; // check for comment navigation ?>
    
    <?php else : // this is displayed if there are no comments so far ?>
    
    <?php endif; ?>
    
    <?php
    $args = array(
    	'comment_notes_after' => '',
    	'comment_field' => '<p class="comment-form-comment"><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>'
    );
    comment_form($args); ?>
    
    </div><!-- #comments -->
  14. Sophia Dreams
    Member
    Posted 1 year ago #

    hi, I can not find the comment field to change it to english. please advise where can I find it? my comment field poping in French.
    here is a lonk to my site:
    http://www.sophiadreams.com
    thanks in advance.

  15. Andrew
    Forum Moderator
    Posted 1 year ago #

    Hi Sophia, I'm sure someone will be able to help, but you need to first create your own thread. This thread's discussion ended 8 months ago, so I'm closing this thread.

Topic Closed

This topic has been closed to new replies.

About this Topic