Removing(replacing) avtar in comments.php with some other HTML arrangements
Use the get_avatar filter and develop a function to return whatever avatar you want.
Use the get_avatar filter and develop a function to return whatever avatar you want.
You can easily achieve that from the DB user table, On the image I marked that field.
Managed to solve this my self. The solution was as simple to just call the comments template. Think I originally messed up by calling the template twice if ( comments_open() || get_comments_number() ) { comments_template(); }
You can change the URL for the action of the comment form like this: add_filter( ‘comment_form_defaults’, ‘wpse316762_comment_form_defaults’ ); function wpse316762_comment_form_defaults( $defaults ) { $defaults[ ‘action’ ] = site_url( ‘/error.php’ ); return $defaults; }
Are paginated comments required for publishing Themes?
Closing Comments conditionally in comments.php
Add code in your theme function.php file function comment_validation_init() { if(is_single() && comments_open() ) { ?> jQuery(document).ready(function($) { $(‘#commentform’).validate({ rules: { author: { required: true, minlength: 2 }, email: { required: true, email: true }, comment: { required: true, minlength: 20 } }, messages: { author: “Please fill the required field”, email: “Please enter a … Read more
You should use append paginate_comments_links() into $output like so: add_shortcode ( ‘show_recent_comments’, ‘show_recent_comments_handler’ ); function show_recent_comments_handler( $atts, $content = null ) { extract( shortcode_atts( array( “count” => 20, “pretty_permalink” => 0 ), $atts )); $output=””; // this holds the output if ( is_user_logged_in() ) { global $current_user; get_currentuserinfo(); $args = array( ‘user_id’ => $current_user->ID, ‘number’ … Read more
Use <?php comment_author_email(); ?>. Use it in comment callback function or you can also hook it to your comment_text. It will show the comment author’s email inside the comment loop. But keep in mind the WordPress instruction: Care should be taken to protect the email address and assure that email harvesters do not capture your … Read more
Best way to edit/change comment-template.php without changing the core