how to add text for comment rules manually to template (3 posts)

  1. richards1052
    Posted 10 years ago #

    Since I get a few wildly offensive comments once in a while, I'd like to add some text above the comment box describing rules for what types of comments won't be published. I assume I'd add this in the comment template. If so, can someone tell me where in the code I'd add the text?

  2. moshu
    Posted 10 years ago #

    As you said: above the text area.
    Open your comments.php file and find where the form starts - usually it is something like:
    <form action=...
    and place your text above it (don't forget to format, i.e. put some tags p, span, class, whatever around to be able to style it in the stylesheet).

  3. richards1052
    Posted 10 years ago #

    Thanks, Moshu. I did some experimenting within the comment template & found the right place.

    In my theme, Almost Spring, I placed it right before this code:
    <textarea name="comment" id="comment" cols="70" rows="10" tabindex="4"></textarea>

Topic Closed

This topic has been closed to new replies.

About this Topic