Forum Replies Created
-
Yes, I have made a child theme of twentyseventeen. I just don’t know where to put the codes you gave.
Oh, that would be very good!
I’m sorry that I know nearly nothing about codes.
By **need to be a function**, do you mean I have to put the code into function.php and add “my_function{…}”?
I really do not know where to put the second code. My theme is twentyseventeen.
@leog371 It seems you use the wp delete comment function. I want the comment author can delete their own comment and this is why I want to use buddypress delete activity function. Does your function allow the comment author to delete their own function?
And it is difficult for me find where to put the second codes.
I try to put it after-
<?php
wp_list_comments( array(
'avatar_size' => 100,
'style' => 'ol',
'short_ping' => true,
'reply_text' => twentyseventeen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'twentyseventeen' ),
) );
?>but it is not the right place. I want show the button after each comment.
@leog371 The codes work very well! And I also want add buddypress delete comment button after each comment on a blog, so the comment user could delete their own comment. I tried hours but failed to modify the add favorite codes. I konw little about php, would you like to give a hand?
It looks great! thx!
en, maybe some works, but I can’t understand.
Anyone knows?