How can I remove a 'Leave a reply' link at bottom of my blog page?

2 replies
I have a site, Your Digital Marketing Expert Consultant - Your Ticket To Increased Earnings for Your Local Service Business and on the bottom of the home page there is a link 'Leave a reply' I don 't want. I have comments turned off, and I deleted the data on the comments.php so it is blank. So why would this still be there? The link just reloads the page, but still t is distracting to my readers. I would like to remove it if possible. Can anyone tell me how to do this? I am sure this is not a theme item as comments are controlled by the WordPress platform, so editing something in the editor would be the place to look I believe, but I am not a programmer so I come here to ask what I should do, if anyone can help me. Please.
#blog #bottom #leave #link #page #remove #reply
  • Profile picture of the author David V
    You should be able to use the 'comment_form_defaults' to filter the comment fields.

    In the code below we are modifying the "title_reply" with a blank like so.

    $args['title_reply'] = __( 'This part we will leave blank below!' );

    PHP Code:
    /**
     * Filter the comments "Leave a Reply" title
     */
    function change_comment_title_reply$args ) {
      
    $args['title_reply'] = __'' );
      return 
    $args;
    }
    add_filter'comment_form_defaults''change_comment_title_reply' ); 
    Drop this into your functions.php file


    Edit: You may have to change the parameters depending on the theme and if it modifies the comment area. I see you using weaver, but I haven't looked at how they do things.
    Either way, you can use a filter.
    {{ DiscussionBoard.errors[10575684].message }}
  • Profile picture of the author timpears
    Thanks David, I appreciate your help.
    Signature

    Tim Pears

    {{ DiscussionBoard.errors[10575821].message }}

Trending Topics