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


  • Please log in to reply
2 replies to this topic

#1 alexb

alexb

    Super Member

  • Members

  • 105 posts
  • Country: Country Flag

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
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

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/


  • alexb and batman like this

#3 alexb

alexb

    Super Member

  • Members

  • 105 posts
  • Country: Country Flag

Posted 17 January 2013 - 09:43 PM

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