Title: [Plugin: wp-comment-master] Replace the tank you text with code
Last modified: August 20, 2016

---

# [Plugin: wp-comment-master] Replace the tank you text with code

 *  [Isaakwells](https://wordpress.org/support/users/isaakwells/)
 * (@isaakwells)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-comment-master-replace-the-tank-you-text-with-code/)
 * Is it possible for me to replace the thank you text with a code for a random 
   thank you message? where would I place this code. It’s php btw.
 * [http://wordpress.org/extend/plugins/wp-comment-master/](http://wordpress.org/extend/plugins/wp-comment-master/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Olaf Lederer](https://wordpress.org/support/users/finalwebsites/)
 * (@finalwebsites)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-comment-master-replace-the-tank-you-text-with-code/#post-2337724)
 * Hi,
 * I have the same request.
    I changed the file “cm.js”:
 *     ```
       var $message=jQuery('<span class="yjl-mes"></span>').appendTo("#commentform");
       ```
   
 * becomes
 *     ```
       var $message=jQuery('<span class="yjl-mes"></span>').prependTo("#commentform");
       ```
   
 * This way you’ll move the messages above the form instead of below.
 * Would be great if the plugin author will make this an option in the admin page.
   
   It would be also cool to have some style options for the message (add a field
   for the css class name), now I need to change plugin’s css file:
 *     ```
       .yjl-mes{
          color:#3C72B0;
          font-size:12px;
          font-weight:bold;
          line-height:30px;
       }
       ```
   
 * Edit by Olaf:
    I noticed that the plugin doesn’t work on pages, I added is_page()
   to this row:
 * `if(is_single() || is_page())wp_enqueue_script('paginating_js', WP_PLUGIN_URL.'/
   wp-comment-master/cm.js',array('jquery'),'',true);`
 *  Plugin Author [Olaf Lederer](https://wordpress.org/support/users/finalwebsites/)
 * (@finalwebsites)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-comment-master-replace-the-tank-you-text-with-code/#post-2337725)
 * Another suggestion 🙂
 * All warnings or error messages should be in red color. The thank you message 
   should have an different color like green.
 * I change this row (added the css attr.)
 * `$message.empty().append((yjlSettings.thank!=''?yjlSettings.thank:'Thank you 
   for your comment!')).css('color', 'green');`

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: wp-comment-master] Replace the tank you text with code’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-comment-master.svg)
 * [wp-comment-master](https://wordpress.org/plugins/wp-comment-master/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-comment-master/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-comment-master/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-comment-master/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-comment-master/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-comment-master/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Olaf Lederer](https://wordpress.org/support/users/finalwebsites/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-comment-master-replace-the-tank-you-text-with-code/#post-2337725)
 * Status: not resolved