Tagged: x
-
AuthorPosts
-
March 24, 2016 at 6:34 pm #851717
Hi..
Please I need change the text reply=Responder, comments=comentarios sumit=enviar and edit=editar
Thank you sorry my bad englishMarch 24, 2016 at 10:54 pm #851918Hi There,
Thanks for writing in! Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.
Then navigate to your child theme \x-child\framework\views\integrity\ directory. Create a file there named wp-comments.php and paste the code below on it.
<?php // ============================================================================= // VIEWS/INTEGRITY/WP-COMMENTS.PHP // ----------------------------------------------------------------------------- // The area of the page that contains both current comments and the comment // form. The actual display of comments is handled by a callback to // x_comment(). // ============================================================================= ?> <?php // // 1. If the current post is protected by a password and the visitor has not // yet entered the password, we will return early without loading the // comments. // if ( post_password_required() ) return; // 1 ?> <div id="comments" class="x-comments-area"> <?php if ( have_comments() ) : ?> <h2 class="h-comments-title"><span><?php _e( 'Comentarios' , '__x__' ); ?> <small><?php echo number_format_i18n( get_comments_number() ); ?></small></span></h2> <ol class="x-comments-list"> <?php wp_list_comments( array( 'callback' => 'x_integrity_comment', 'style' => 'ol' ) ); ?> </ol> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> <nav id="comment-nav-below" class="navigation" role="navigation"> <h1 class="visually-hidden"><?php _e( 'Comment navigation', '__x__' ); ?></h1> <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', '__x__' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', '__x__' ) ); ?></div> </nav> <?php endif; ?> <?php if ( ! comments_open() && get_comments_number() ) : ?> <p class="nocomments"><?php _e( 'Comments are closed.' , '__x__' ); ?></p> <?php endif; ?> <?php endif; ?> <?php comment_form( array( 'comment_notes_after' => '', 'id_submit' => 'entry-comment-submit', 'label_submit' => __( 'Enviar' , '__x__' ) ) ); ?> </div>
Hope it helps, Cheers!
March 24, 2016 at 11:59 pm #851981excelent thank you.. is posible change the text reply?
March 25, 2016 at 12:58 am #852033Hi,
You can add this under Custom > Javascript in the Customizer.
(function($){ $('.comment-reply-link').text('My reply text'); })(jQuery)
Change My reply text with your text
Hope that helps.
March 25, 2016 at 1:21 am #852052you are the best…. thank you
March 25, 2016 at 1:23 am #852053You are welcome!
Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Thanks for using X.
Cheers!
-
AuthorPosts