Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #291961

    When a registered user makes a comment, the authors name will link to a URL if the user has filled in the website field when the user registered. This is being used for spam so I would like to disable the author URL. I have tried several plugins and while the author’s URL is removed from the recent comments widget, the authors name still links to a URL when the user makes a comment. How can I disable the author URL?

    #291993

    Hi lsrmedia!

    Thank you for using our theme.

    The only way is to alter the source code of the following file:

    enfold/includes/loop-comments.php

    Open it and goto line 30.

    Replace:

    
    $link = get_comment_author_url();
    if(!empty($link))
    

    with

    
    //    $link = get_comment_author_url();
    $link = '';
    //    if(!empty($link))
    

    if you do not want to have the author info at all:

    
    //    $link = get_comment_author_url();
    $link = ''; 
    if(!empty($link))
    

    If you are using a child theme copy the file to the child theme folder in subfolder /includes and make the changes there. This avoids that your changes will be overwritten on every update.

    Regards,
    Günter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.