adding a text message beside the comment submit button

Question

What is the cleanest way to display a text message beside the submit button like this in screen shot:

example of what I am talking about

I am currently doing it by editing the file wp-includes/comment-template line 1577 (wordpress 3.5)

before:

<input name="submit" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" 
value="<?php echo esc_attr( $args['label_submit'] ); ?>" /> 

after:

<input name="submit" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" 
value="<?php echo esc_attr( $args['label_submit'] ); ?>" /> 
(your message will only be visible after moderation)

I understand this is not the optimal way to do it, but what is the way to do it.

I prefer as a plugin, but editing a theme would be fine.

0
, , , , sharp12345 1 year 2020-07-21T02:11:43-05:00 0 Answers 54 views 0

Leave an answer

Browse
Browse