Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] What determines error boxes versus in-line text error messages

  • Resolved largeblackcoffee

    (@largeblackcoffee)


    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!

    http://wordpress.org/extend/plugins/contact-form-7/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    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.

    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.

    This might be a CSS issue…

    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.

    <?php
            /* 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.
             */
            wp_head();
    ?>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Contact Form 7] What determines error boxes versus in-line text error messages’ is closed to new replies.