Jump to content

Archived

This topic is now archived and is closed to further replies.

seanocaside21

Change "Leave a reply" text in comments

Recommended Posts

seanocaside21+    10
seanocaside21

Hi Guys,

 

I'm looking to re-word the "Leave a reply" text in the comments section. 

 

I have done a bit of looking around the various wordpress forums and found that by adding the following to the comments.php file i can get it working but unfortunately the comments section is now doubling up. 

 

comment_form(); ?>
    
    <?php comment_form( array( 'title_reply' => 'Comment here please', 'label_submit' => 'Go go go!' ) ); ?>

 

I wonder does anyone no what ive done wrong? Problem can be seen here: http://gwd-test.flcreative.ie/?p=76

 

Thanks,

 

Sean

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there, if you edit the core files the changes will be wiped out each time you update.

 

You'll need to add this as a filter inside the functions.php of a child theme like - https://github.com/Dannyholt/Skeleton

 

function comment_reform ($arg) {
$arg['title_reply'] = __('Your text goes here');
return $arg;
}
add_filter('comment_form_defaults','comment_reform');

  • Like 1

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
seanocaside21+    10
seanocaside21

James B 

Awesome worked a treat! 

Share this post


Link to post
Share on other sites

  • Similar Content

    • MissT
      By MissT+
      Does the magazine section not support comments?  I have comments allowed but they aren't showing on post pages and there doesn't seem to be a way to add a comments section in either.
      Many thanks in advance.
    • photomom86
      By photomom86+
      I have installed and activated the disqus comments plugin and no matter what I do the comments will not show up on my posts. Is this a know glitch with disqus and pagelines?
    • Jason J
      By Jason J
      Hello all,
      I realize there's a chance that this super-basic question is going to make me look foolish, but I can't find a setting for it.
      Most blogs I come around allow people to reply to a specific comment (there's a reply link for each comment as opposed to just one reply at the bottom of the comment list).
      On a blog I manage that's using Pagelines (and foolishly not a child theme), there's no such reply link for each comment, only one at the bottom of the page.  I thought maybe there was a comments setting somewhere that would enable "in-line" commenting, but I couldn't find one.
      Am I overlooking something very basic, or is it a matter of adjusting the theme code to allow this?
      Thanks in advance,
      -jason
    • rrosewarne
      By rrosewarne
      Hi
      The comments on blog posts isn't working? it used to but now if you click the 'leave comment' link it goes to the bottom of the page and there is no comment box
      http://www.rosewarnegardens.com/the-joys-of-a-qualified-horticulturalist/
    • erin-wsk
      By erin-wsk
      I'm not sure if this is something that can easily be done, but I'm looking to move the respond section above the actual comments (when a post gets 100+ comments, it can be cumbersome to scroll through all of them to just respond). I've tried creating a custom section but the comment code is a bit engrained in the DMS theme- I'm not sure it can easily pulled out an made into a tidy section. Any thoughts or points in the right direction would lovely. 
×