Tagged: x
-
AuthorPosts
-
March 1, 2017 at 11:11 pm #1391414
begladinhimParticipantX Theme: 4.6.4
Wordpress: 4.7.2
Stack: Renew
Website: TryEverythingBlog.comI was wondering if there was a way to change the “[#] Comments on [Name of Post]” heading to just plain “Comments”? I couldn’t find any options to change this.
March 2, 2017 at 1:30 am #1391511
FriechModeratorHi There,
Thank you for writing in but would you mind providing us an screenshot of what you’re referring to? I’m not seeing [#] Comments on [Name of Post] on the page you provided.
We’ll be happy to provide you with a response once we have a better understanding of the situation.
Cheers!
March 2, 2017 at 8:38 am #1391876
begladinhimParticipantI’m referring to the comment section of my posts. Here’s an example: http://www.tryeverythingblog.com/how-to-paint-kitchen-cabinets/
If you scroll down to the bottom, you’ll see it. I’m also attaching the screenshot of the text that I’m referring to.
Thanks!
March 2, 2017 at 9:35 am #1391980
RupokMemberHi there,
Thanks for clarifying. In that case you need to change the template with Child Theme. You can create the directory /framework/views/renew/wp-comments.php and place this code :
<?php // ============================================================================= // VIEWS/RENEW/WP-COMMENTS.PHP // ----------------------------------------------------------------------------- // The area of the page that contains both current comments and the comment // form. The actual display of individual comments is handled by a callback to // the x_comment() function. // ============================================================================= ?> <?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"> <?php printf('Comments'); ?> </h2> <ol class="x-comments-list"> <?php wp_list_comments( array( 'callback' => 'x_renew_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' => __( 'Submit' , '__x__' ) ) ); ?> </div>Hope this helps.
March 2, 2017 at 11:42 am #1392127
begladinhimParticipantAwesome, it worked! Thanks so much!
March 2, 2017 at 11:51 am #1392145
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1391414 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
