Our words can be powerful, but like most things in life they can be destructive if used irresponsibly. Many blogs have an open door policy when it comes to comments on their posts, but it seems as though times are changing.
If you have experienced abuse in your comments section, or simply want to lay down some general ground rules, there’s some good news. I’ll show you just how easy it is to add a Comment Policy box before the comments of your Genesis-powered website.
Adding a Comment Policy Box
The first thing you need to do is register the Comment Policy widget area. Open up your theme’s functions.php file and place the following code:
Next you’ll need to use a function to hook the output of the Comment Policy widget area before the comment form. In your theme’s functions.php file, place the following code:
Now that you’ve registered and hooked the Comment Policy widget area, you might want to style the Comment Policy box. Here’s some sample CSS to help get you started:
If you’re looking to add your Comment Policy in another location, here’s a comprehensive list of Genesis Hooks for you to use as reference. I’m also pleased to share with you some Genesis code snippets that I use when I’m developing websites with the Genesis Framework. They are free to use, so go ahead and do whatever you want with them.