• Resolved snowme

    (@snowme)


    Hi,

    How do you change the tooltip title “Required Your Message” in the comment textarea?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author nobita

    (@nobita)

    Hi @snowme

    The easiest way to change a message is to use a translation text filter.
    Please add the following PHP code to the functions.php of the theme.

    
    <?php
    add_filter( 'gettext', 'raindrops_change_translate', 10, 3 );
    
    function raindrops_change_translate( $translation, $text, $domain ) {
    
    	$names = array(
    		'Required Your Message' => 'Your Custom Message',
    	);
    
    	if ( $domain == 'raindrops' ) {
    		$translation = str_replace( array_keys( $names ), array_values( $names ), $translation );
    	}
    	return $translation;
    }
    ?>
    

    Please replace from ‘Your Custom Message’ to your message

    Thank you

    Thread Starter snowme

    (@snowme)

    Thanks for the quick reply. Your solution worked great. Thanks for the great support!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change comment Tooltip’ is closed to new replies.