質問編集履歴

3

ごじ

2018/05/18 01:03

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -43,32 +43,6 @@
43
43
  ```php
44
44
 
45
45
  <?php
46
-
47
- /**
48
-
49
- * The template for displaying comments.
50
-
51
- *
52
-
53
- * The area of the page that contains both current comments
54
-
55
- * and the comment form.
56
-
57
- *
58
-
59
- * @package Pingraphy
60
-
61
- */
62
-
63
- /*
64
-
65
- * If the current post is protected by a password and
66
-
67
- * the visitor has not yet entered the password we will
68
-
69
- * return early without loading the comments.
70
-
71
- */
72
46
 
73
47
  if ( post_password_required() ) {
74
48
 

2

ごじ

2018/05/18 01:03

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -140,7 +140,7 @@
140
140
 
141
141
  'avatar_size'=> 100,
142
142
 
143
- 'reply_text' => 'コメントする <i class="fa fa-comment"></i>',
143
+ 'reply_text' => 'コメントする <i class="fa fa-comment"></i>',
144
144
 
145
145
  'short_ping' => true,
146
146
 

1

追記

2018/05/18 01:01

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -15,3 +15,171 @@
15
15
 
16
16
 
17
17
  ご存じの方がいらっしゃいましたらスラッシュにする方法を教えてくださいませ。m(_ _)m
18
+
19
+
20
+
21
+
22
+
23
+ ###追記
24
+
25
+ テーマとテンプレートを追記します。
26
+
27
+
28
+
29
+ ★テーマ
30
+
31
+ pingraphy
32
+
33
+ 参考:[https://ja.wordpress.org/themes/pingraphy/
34
+
35
+ ](https://ja.wordpress.org/themes/pingraphy/)
36
+
37
+
38
+
39
+ ★テンプレート
40
+
41
+ commens.php
42
+
43
+ ```php
44
+
45
+ <?php
46
+
47
+ /**
48
+
49
+ * The template for displaying comments.
50
+
51
+ *
52
+
53
+ * The area of the page that contains both current comments
54
+
55
+ * and the comment form.
56
+
57
+ *
58
+
59
+ * @package Pingraphy
60
+
61
+ */
62
+
63
+ /*
64
+
65
+ * If the current post is protected by a password and
66
+
67
+ * the visitor has not yet entered the password we will
68
+
69
+ * return early without loading the comments.
70
+
71
+ */
72
+
73
+ if ( post_password_required() ) {
74
+
75
+ return;
76
+
77
+ }
78
+
79
+ ?>
80
+
81
+ <div id="comments" class="comments-area">
82
+
83
+
84
+
85
+ <div class="comment-form-wrap">
86
+
87
+ <?php
88
+
89
+ $comment_args = array( 'title_reply'=>'コメントする <i class="fa fa-comment"></i>',
90
+
91
+ 'fields' => apply_filters( 'comment_form_default_fields', array(
92
+
93
+ 'author' => '<p class="comment-form-author"><input placeholder="名前'.( $req ? '*' : '' ).'" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" /></p>',
94
+
95
+ 'email' => '<p class="comment-form-email"><input placeholder="Email'.( $req ? '*' : '' ).'" id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" />'.'</p>',
96
+
97
+ 'url' => '<p class="comment-form-url"><input placeholder="Website" id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>' )),
98
+
99
+ 'comment_field' => '<p><textarea placeholder="コメント" id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea>'.'</p>',
100
+
101
+ 'comment_notes_after' => '',
102
+
103
+ );
104
+
105
+ ?>
106
+
107
+ <?php if (get_comments_number() < 100) : ?>
108
+
109
+ <?php comment_form($comment_args); ?>
110
+
111
+ <?php endif;?>
112
+
113
+ </div>
114
+
115
+
116
+
117
+ <?php if ( have_comments() ) : ?>
118
+
119
+ <div class="comment-desc">
120
+
121
+ <?php endif; ?>
122
+
123
+ <?php // You can start editing here -- including this comment! ?>
124
+
125
+
126
+
127
+ <?php if ( have_comments() ) : ?>
128
+
129
+ <ol class="comment-list">
130
+
131
+ <?php
132
+
133
+ wp_list_comments( array(
134
+
135
+ 'style' => 'ol',
136
+
137
+ 'max_depth' => '2',
138
+
139
+ 'per_page' => '100',
140
+
141
+ 'avatar_size'=> 100,
142
+
143
+ 'reply_text' => 'にコメントする <i class="fa fa-comment"></i>',
144
+
145
+ 'short_ping' => true,
146
+
147
+ 'reverse_top_level' => true,
148
+
149
+ 'reverse_children' => true
150
+
151
+ ) );
152
+
153
+ ?>
154
+
155
+ </ol><!-- .comment-list -->
156
+
157
+ <?php endif; // Check for have_comments(). ?>
158
+
159
+
160
+
161
+ <?php
162
+
163
+ // If comments are closed and there are comments, let's leave a little note, shall we?
164
+
165
+ if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
166
+
167
+ ?>
168
+
169
+ <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'pingraphy' ); ?></p>
170
+
171
+ <?php endif; ?>
172
+
173
+
174
+
175
+ <?php if ( have_comments() ) : ?>
176
+
177
+ </div><!-- .comment-desc -->
178
+
179
+ <?php endif; ?>
180
+
181
+
182
+
183
+ </div><!-- #comments -->
184
+
185
+ ```