adding a text message beside the comment submit button

What is the cleanest way to display a text message beside the submit button like this in screen shot: I am currently doing it by editing the file wp-includes/comment-template line 1577 (wordpress 3.5) before: <input name=”submit” type=”submit” id=”<?php echo esc_attr( $args[‘id_submit’] ); ?>” value=”<?php echo esc_attr( $args[‘label_submit’] ); ?>” /> after: <input name=”submit” type=”submit” id=”<?php … Read more

Why does comment_reply_link launch the reply form at the wrong spot on the comment section?

I have this custom extended Walker_Comments class: class Custom_Comment_Walker extends Walker_Comment { var $tree_type=”comment”; var $db_fields = array( ‘parent’ => ‘comment_parent’, ‘id’ => ‘comment_ID’ ); function __construct() { ?> <ul class=”comments-list col-md-12″> <?php } function start_lvl( &$output, $depth = 0, $args = array() ) { $GLOBALS[‘comment_depth’] = $depth + 1; ?> <ul class=”child-comments comments-list col-md-12″> … Read more

How to place comments_template(); outside the loop?

I am making a new template and I need to place the comments template outside the wordpress loop and just above the footer in the single.php file. I searched on google and the best answered I could find related to my issue is in this link: https://stackoverflow.com/questions/6384205/displaying-the-wordpress-comments-template-outside-the-loop However, that did not work. The same comments … Read more

How can I limit the number of comments per registered user per day?

I found this code on WPSE: global $current_user, $post; $args = array( ‘user_id’ => $current_user->ID, ‘post_id’ => $post->ID ); $usercomment = get_comments( $args ); if ( 1 <= count( $usercomment ) ) { echo ‘disabled’; } else { comment_form(); } Note: It seems to limit the number of comments per post per user. I want … Read more

Change HTML Produced by wp_list_comments()

I am developing a WordPress theme for which I would like each comment’s timestamp wrapped in in a <span> element for the sake of styling it with CSS rules. However, the wp_list_comments() function as I use it in my theme’s comments.php template does not seem to provide options to alter the HTML produced: <ol class=”comment-list”> … Read more

How to wrap submit button of comment form with div

Is there a way to wrap the submit button with html element while using wordpress function comment_form function. $comments_args = array( ‘id_form’ => ‘main-contact-form’, ‘class_form’ => ‘contact-form’, ‘class_submit’ => ‘btn btn-primary btn-lg’, ‘label_submit’ => ‘Add Comment’, ‘fields’ => $fields, ‘title_reply_before’ => ‘<div class=”message_heading”><h4>’, ‘title_reply_after’ => ‘</h4><p>Make sure you enter the(*)required information where indicate.HTML code is … Read more