Jump to content


Photo

Changing text of Post Comment Button


Best Answer Simon_P , 17 January 2013 - 09:22 PM

The field you want to change is label_submit

 

Plenty of info here: http://www.1stwebdes...-customization/

Go to the full post


This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1 alexb†

alexb

    Super Member

  • DMS Subscriber†
  • 105 posts

Posted 17 January 2013 - 09:05 PM

Apologies if this has already been answered elsewhere here but I did do a search and turned up nothing!

 

I'm trying to change the text in my POST COMMENT button...to just POST

 

I know I need to place some code at the bottom of the child theme functions.php file.

 

The question is what though?

 

Something along these lines...i think this will change the comment section title rather than the button at the bottom. How do I modify this to chnage the POST COMMENT button?

 

function comment_reform ($arg) { $arg['title_reply'] = __('Submit a comment:'); return $arg; } add_filter('comment_form_defaults','comment_reform');

 

 

Or is there an easier way to do it?

Many thanks

 

Alex



#2 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts

Posted 17 January 2013 - 09:22 PM   Best Answer

The field you want to change is label_submit

 

Plenty of info here: http://www.1stwebdes...-customization/



#3 alexb†

alexb

    Super Member

  • DMS Subscriber†
  • 105 posts

Posted 17 January 2013 - 09:43 PM

Thanks Simon! Problem solved and thanks for the link also. Alex