WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any plugin that can do that?

share|improve this question

closed as off-topic by tfrommen, gmazzap, toscho Nov 7 '13 at 18:18

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

Hi @Emerson:

Do you want before the list of comments or before the comment form (I assume the latter?)

If yes, and I'm assuming you are either using the TwentyTen theme or a theme that uses the new comment_form() function from WordPress 3.0.0? If so it's as simple as using the 'comment_form_before' hook. Here's an example you can place in your theme's functions.php file:

function my_comment_form_before() {
?><p>By leaving a comment you are pledging your first born to my command! Muhahaha! :-)</p><?php
share|improve this answer
Honesty is always the best policy. +1 – goldenapples Jan 11 '11 at 16:49
This didn't work. I am using the "Graphene" template. khairul-syahir.com/wordpress-dev/graphene-theme – Emerson Jan 12 '11 at 18:01
@Emerson - Then Graphene is not using the comment_form() function that comes in WordPress 3.0 it would seem. Can you verify? – MikeSchinkel Jan 12 '11 at 18:28
I believe do_action should be add_action for this code to work. Just tested and it works. Tried to edit the code but edits must be more than 6 chars. – Andrew Aug 22 '12 at 9:15

Just add it in before the comment function (unless I misunderstood something?):

<div class="policy">policy text</div>
<?php comments_template(); ?>

This would be on single.php, page.php

share|improve this answer
Wouldn't it be loop.php ? – Emerson Jan 12 '11 at 18:04
Would be outside the loop I'd think, loop serves to display posts. – Noel Tock Jan 12 '11 at 21:27

You may use my plugin Magic Widgets. It creates a sidebar (widget) area on four actions. Plus, you get a text widget that outputs exactly the markup you put therein.

There is a second plugin for the comment form. After activation you can place a widget on any place there.


alt text

You don’t have to change the theme’s code, and you can even switch themes, and the widgets will stay in place.

share|improve this answer
Thank you for making this plugin, it was exactly what I was looking for. I would only ask that you give us, non-german speakers, a fair chance to understand it better. The plugin is in english, but your website is NOT, and your site is the place where we will go to seek for answers before bothering you with our questions. I had to break my head for two hours before realizing how it works, and I am pretty sure you explained it on your site, but out of the five languages I speak, german is not one of them. Imagine others who speak only one? Only English, and via a translator, that doesn't have g – user15483 Apr 23 '12 at 19:37

Not the answer you're looking for? Browse other questions tagged or ask your own question.