diff --git a/comments.php b/comments.php index 525a93d..7cf2a98 100644 --- a/comments.php +++ b/comments.php @@ -66,7 +66,16 @@ endif; // Check for have_comments(). - comment_form(); + comment_form( array( + 'class_submit' => 'uk-button uk-button-primary', + 'comment_field' => '

', + 'fields' => array( + 'author' => '

' . ' ' . ( $req ? '*' : '' ) . '

', + 'email' => '

' . ( $req ? '*' : '' ) . '

', + 'url' => '

' . '

', + ), + 'submit_button' => '', + )); ?> diff --git a/functions.php b/functions.php index fff09d1..bf54112 100644 --- a/functions.php +++ b/functions.php @@ -216,3 +216,8 @@ function teamwpugph_scripts() { if ( defined( 'JETPACK__VERSION' ) ) { require get_template_directory() . '/inc/jetpack.php'; } + +/** + * Custom Walker Comment + */ +require get_template_directory() . '/inc/class-teamwpugph-comments.php'; \ No newline at end of file diff --git a/inc/class-teamwpugph-comments.php b/inc/class-teamwpugph-comments.php new file mode 100644 index 0000000..cac8b12 --- /dev/null +++ b/inc/class-teamwpugph-comments.php @@ -0,0 +1,96 @@ + + < id="comment-" has_children ? 'parent' : '', $comment ); ?>> + +
+
+
+ +
+
+

+ + %s', get_comment_author_link( $comment ) ) + ); + ?> +

+
    +
  • + + + +
  • +
  • +
      + 'div-comment', + 'depth' => $depth, + 'max_depth' => $args['max_depth'], + 'before' => '
    • ', + 'after' => '
    • ', + ) + ) + ); + ?> +
    +
  • +
+
+
+
+ +
+
+ + + +