Support » Themes and Templates » [Theme: Twenty Thirteen] Change comment_reply_link text

  • I am wondering how I can change the text that reads “Reply” under a comment that someone has commented. I can’t seem to find the get_comment_reply_link code anywhere. I am using a child theme.

    I have tried pasting this into a blank functions.php in the child theme folder.

    comment_reply_link(array ('reply_text' => 'Svar', 'depth' => $depth, 'max_depth' => $args['max_depth'])) 

    That does not work, so I am clearly doing something wrong and not understanding what to add or change.

Viewing 1 replies (of 1 total)
  • John – I’m sure you’ve already received your answer (or moved on) from this. BUT This question popped up in the top 5 on Google, I was able to find the answer and hope that this helps someone else.

    Open your functions.php file and paste in the following code.

    Just change Reply to this comment to whatever you please and you’re good to go.

    function custom_comment_reply($content) {
    	$content = str_replace('Reply', 'Reply to this comment', $content);
    	return $content;
    add_filter('comment_reply_link', 'custom_comment_reply');
Viewing 1 replies (of 1 total)
  • The topic ‘[Theme: Twenty Thirteen] Change comment_reply_link text’ is closed to new replies.