Contact Form 7
[resolved] What determines error boxes versus in-line text error messages (5 posts)

  1. largeblackcoffee
    Posted 3 years ago #

    I'm using Contact Form 7 on several sites. On one site the error messages show up with nice looking boxes around the error message (red if required, green when the message is sent, etc.). However, I have another site with all the same settings and I think nearly all the same plugins, but the Contact Form 7 errors are in-line (they are plain text just to the right of the field). Is there a way to specify the nice looking error message boxes? THANKS!


  2. Takayuki Miyoshi
    Plugin Author

    Posted 3 years ago #

    The error box with red|green|yellow|orange border is for the whole form. The inline error is for each field. They are definitely different things.

  3. largeblackcoffee
    Posted 3 years ago #

    Takayuki, I don't disagree with your response. However, the issue I'm having is that one site shows these messages in the boxes, while the other does not and simply shows them without a box. Is there a way to have them show the boxes? Thanks.

  4. biswajeet
    Posted 3 years ago #

    This might be a CSS issue...

  5. largeblackcoffee
    Posted 3 years ago #

    FOUND IT. This section of code was missing from the header.php file. Once added it worked fine. THANKS for all the help as it helped me look in places I would not otherwise have looked.

            /* We add some JavaScript to pages with the comment form
             * to support sites with threaded comments (when in use).
            if ( is_singular() && get_option( 'thread_comments' ) )
                    wp_enqueue_script( 'comment-reply' );
            /* Always have wp_head() just before the closing </head>
             * tag of your theme, or you will break many plugins, which
             * generally use this hook to add elements to <head> such
             * as styles, scripts, and meta tags.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.