WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. largeblackcoffee
    Member
    Posted 1 year 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!

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

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    This might be a CSS issue...

  5. largeblackcoffee
    Member
    Posted 1 year 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.

    <?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();
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.