
If you find yourself in need of customizing the ‘Post Comment’ button in your Genesis powered WordPress blog, the code below will get it done.
Simply open functions.php from within your WordPress admin panel and add the following lines of code below. Where you see the copy ‘Submit Comment’ is where you can change the button to anything you want.
Happy coding!
/**
* Change the submit button label.
*
* @author Rick R. Duncan
* @link http://www.BuildBrandBelieve.com
*/
add_filter( 'comment_form_defaults', 'child_change_comment_form' );
function child_change_comment_form( $defaults ) {
$defaults['label_submit'] = 'Submit Comment';
return $defaults;
}
