WordPress.org

Ready to get started?Download WordPress

Forums

Custom Contact Forms
[resolved] form success popover is not showing up (8 posts)

  1. ivan2704
    Member
    Posted 3 years ago #

    I installed this plugin and customised it, and it works, sends mail, but after mail is sent there is no popover with successful message.
    My theme calls wp_footer() (it is modified twentyten theme), and when I look the source code of page where form is I see this after footer div:

    <div id="ccf-form-success">
                	<div>
                		<h5>Message sent!</h5>
                    	<a href="javascript:void(0)" class="close">&times;</a>
                    </div>
                    <p>We will contact you.</p>
                </div>

    But nothing shows when I look at the page. I disabled jquery because of other plugins, is this problem?

  2. JeremyVisser
    Member
    Posted 3 years ago #

    It is most likely caused either by a PHP syntax error, or a function causing a fatal error. The code you posted does not contain anything likely to cause that, so that's barking up the wrong tree.

    The way I'd go about getting to the bottom of this is enabling WP_DEBUG in your wp-config.php.

    If that doesn't get you the output you need, try also adding ini_set('display_errors','On'); to your wp-config.php.

    Let us know how you go.

  3. ivan2704
    Member
    Posted 3 years ago #

    I don't think it is error because in source I see that div, and I look aorund in css file of that plugin and that div has a display:none.
    I think that is because that sould be popover box, but it doesn't popover to me :D.
    Is there any wat to move that div from footer to other place like below or over the contact form. I mean, I know there is but I don't know how. I think that is defined in custom-contact-forms-front.php

  4. JeremyVisser
    Member
    Posted 3 years ago #

    I’m sorry, I may have misinterpreted you. I assumed you were getting a blank screen.

    display: none; in CSS is for hiding elements. If you get rid of that, it should make it show…assuming that is what the problem is, of course.

  5. ivan2704
    Member
    Posted 3 years ago #

    Yes, not showing is my problem. After the contact form is filled and mail sent, that div should pop out saying you sent mail. But it doesn't.
    And I can remove that display: none; from css but that div is situated below my footer, that isn't good location, if I could move it closer to the contact form I would be happy. But I'm not to experianced and that file in which is defined function that prints that div is little bit complex :D

  6. ivan2704
    Member
    Posted 3 years ago #

    I did a little test. I turned on jquery in contact forms and then the box showed. But then other plugins like superfish menu and jquery lightbox do not work. Now I need solve how to display that box with jquery turned off :D

  7. JeremyVisser
    Member
    Posted 3 years ago #

    Dumb question, but why are you disabling jQuery? jQuery is used at the core of nearly all JavaScript in WordPress.

    It's like removing the fuel tank from your car to make it lighter.

  8. ivan2704
    Member
    Posted 3 years ago #

    I'm just diabling JQuery in this plugin, because it breaks jquery lightbox plugin and jquery dropdown menu.
    99% of this plugin works without JQuery and I need that 1% :(

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic