Quantcast
Channel: WPKube » Snippets
Viewing all articles
Browse latest Browse all 9

Adding a Comment Policy in Thesis WordPress Theme

$
0
0

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.

The post Adding a Comment Policy in Thesis WordPress Theme appeared first on WPKube.


Viewing all articles
Browse latest Browse all 9

Trending Articles