Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 7th Mar 2016, 06:29 PM   #1
VIP Warrior
War Room Member
 
timpears's Avatar
 
Join Date: 2008
Location: Vancouver, WA, USA.
Posts: 5,273
Thanks: 884
Thanked 979 Times in 704 Posts
Default
How can I remove a 'Leave a reply' link at bottom of my blog page?
Share on: 
fb share twitter share gplus share more share

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.

Tim Pears
timpears is offline  
Unread 7th Mar 2016, 07:58 PM   #2
WP Dev & Design
War Room Member
 
Join Date: 2011
Location: Earth
Posts: 787
Thanks: 92
Thanked 271 Times in 226 Posts
Blog Entries: 4
Default
Re: How can I remove a 'Leave a reply' link at bottom of my blog page?
Share on: 
fb share twitter share gplus share more share

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.

Last edited on 7th Mar 2016 at 08:43 PM. Reason: Add note
David V is offline  
The Following User Says Thank You to David V For This Useful Post:
Unread 7th Mar 2016, 09:46 PM   #3
VIP Warrior
War Room Member
 
timpears's Avatar
 
Join Date: 2008
Location: Vancouver, WA, USA.
Posts: 5,273
Thanks: 884
Thanked 979 Times in 704 Posts
Default
Re: How can I remove a 'Leave a reply' link at bottom of my blog page?
Share on: 
fb share twitter share gplus share more share

Thanks David, I appreciate your help.

Tim Pears
timpears is offline  
Closed Thread


Bookmarks

Tags
blog, bottom, leave, link, page, remove, reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:46 PM.