MAGAZINE BASIC: Change comment fields marked "Reply", "Name", "Email" etc. ?
  • kadebgkadebg February 20

    Hi, I am using the Magazine Basic theme and I love it! But, I use it in another language (not English). So I want to change the comments field. I don't want it to say "Name", but "Ime" or "Who are you?" or something else. This is not in the comments.php file, actually I don't know where it is. So how can I change them?

    My site is http://kadebg.com
    My email is kadebg @@ abv.bg

  • cbavotacbavota February 23

    You need to look into modifying the comment_form() function. It is at the bottom of comments.php.

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

  • kadebgkadebg February 24

    Thanks for taking the time to reply!

    What you said was already done, but it doesn't help. Here's the code. Anything else I could try?

    			<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
    $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); ?>
     
     
    <?php if ( have_comments() ) : ?>
    <p id="comments-title">
    <?php
    printf( _n( 'Един коментар по %2$s', '%1$s коментара по %2$s', get_comments_number(), 'magazine-basic' ),
    number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
    ?>
    </p>
     
    <?php if ( get_comment_pages_count() > 1 ) : // are there comments to navigate through ?>
    <div class="navigation">
    <div class="nav-previous"><?php previous_comments_link( __( '&larr; По-стари коментари', 'magazine-basic' ) ); ?></div>
    <div class="nav-next"><?php next_comments_link( __( 'По-нови коментари&rarr;', 'magazine-basic' ) ); ?></div>
    </div>
    <?php endif; // check for comment navigation ?>
     
    <ol class="commentlist">
    <?php wp_list_comments( array( 'callback' => 'mytheme_comment', 'reply_text' => __('Отговор', "magazine-basic") ) ); ?>
    </ol>
     
     
    <?php if ( get_comment_pages_count() > 1 ) : // are there comments to navigate through ?>
    <div class="navigation">
    <div class="nav-previous"><?php previous_comments_link( __( '&larr; По-стари коментари', 'magazine-basic' ) ); ?></div>
    <div class="nav-next"><?php next_comments_link( __( 'По-нови коментари&rarr;', 'magazine-basic' ) ); ?></div>
    </div>
    <?php endif; // check for comment navigation ?>
     
    <?php else : // this is displayed if there are no comments so far ?>
     
    <?php if ( comments_open() ) : // If comments are open, but there are no comments ?>
     
    <?php else : // if comments are closed ?>
     
    <p class="nocomments"><?php _e( 'Коментарите са заключени.', 'magazine-basic' ); ?></p>
     
    <?php endif; ?>
    <?php endif; ?>
     
    </div><!-- #comments -->

  • cbavotacbavota February 24

    That's the only solution I know of.

  • kadebgkadebg February 27

    Okay. Thanks anyway :)

This discussion has been closed.
← All Discussions

Hey there!

Take a look around, and if you would like to add a comment or start a discussion, register by clicking on the button below.

Register

Categories

In this Discussion

Tagged