The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[Theme: Twenty Thirteen] Change comment_reply_link text (2 posts)

  1. John Smith
    Posted 3 years ago #

    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.

  2. Krissy
    Posted 2 years ago #

    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');

Topic Closed

This topic has been closed to new replies.

About this Topic