Adding a Comment Policy in Thesis WordPress Theme

Have you ever thought of adding comment Policy? Providing guidelines for how visitors should take part in the discussion?

In this post I’m going to show you, how to add a comment policy in thesis theme.

Open up the custom_functions.php file in your thesis theme and add the following code.


/* Comment Policy  */
function custom_comment_policy() { ?>
Commenting Policy:  <strong>Do not use just "keywords" for Name</strong>, you must leave a real name, but you can use name@keywords if you like.  All comments subject to moderation.<br /><br />
<?php }
add_action('thesis_hook_comment_form_top', 'custom_comment_policy');

You might want to have this comment policy show up somewhere else than at the thesis_hook_comment_form_top hook. Please have a look at the list of common thesis hooks on the hook reference page to find your perfect hook.

If you are a non thesis user then you may want to read Justin’s post on adding comment policy.

About the Author: Devesh Sharma is a WordPress fanatic and loves experimenting with WordPress themes & plugins. Get more from Devesh on  and Twitter.

You May Also Like:

7 comments… add one
  1. Prasenjit @ Easy Ways to Make Money says:

    Excellent tips but I found a typo again.
    “Have you every(ever) thought of adding comment Policy?”

    Dev, Just fix it and if you want then you can delete this comment. I wont mind.

    Thanks.

  2. excellent tip. I’ve been looking for something like this. But – I’ve been trying to format this “comment policy” because its font right now in my site is very small. Here is the code I have right now:

    .custom .custom-comment-policy { font-size: 10px; }

    Thanks again for the great commenting policy idea!

    • Glad you liked it, Bruce. Thanks for taking the time to share the code with us. It would be very helpful for non-techies.

  3. Terje Sannarnes says:

    I am an online entrepreneur who gives a preference to blog commenting strategy as a method to promote my blog. So, information on comment policy in thesis wordpress theme is extremely helpful for me.

  4. Kristina says:

    Okay, I’m totally obsessed with your Related Posts coding! I’m looking for something just as simply elegant, with the fancy tooltips, but customized to my theme. Can you point me in the direction of how you coded this? I’d be ever so appreciative!

    Right now I’m using Linkwithin and *hate it* : http://prettyshinysparkly.com

    Thanks for the comment policy tutorial!

Speak Your Mind...

A Weekly WordPress Newsletter...

Subscribe now and you will get -

»  Free Guide – Building a Successful WordPress Blog.
»  Weekly Newsletter curating useful blog posts and resources.
»  Exclusive Discount & Deals on Premium Products.

Your email will never be shared with anyone.