WordPress.org

Forums

Form Lightbox
[resolved] Lightbox works only on first click, clicking a 2nd time - progress circle loops (17 posts)

  1. myhero
    Member
    Posted 1 year ago #

    Hi,

    I've installed the plugin and a shortcode.

    It works as it should only on the first click. Clicking the text again does not open the form, it just shows the progress circle.

    I have to refresh to click the link second time.

    What could cause this?

    http://wordpress.org/plugins/form-lightbox/

  2. dyakub
    Member
    Posted 1 year ago #

    Looking for a solution to this as well. Instead of it showing the progression loop, it's showing the home page on the second click. i'm checking to see if there are any Jquery conflicts.

  3. Bhavnish Narang
    Member
    Posted 1 year ago #

    i got the same issue. its showing home page on second click.... any help????

  4. webmakers2011
    Member
    Posted 1 year ago #

    Hi, have you figured out how to fix this? I'm having the same problem with one of my websites...

    At first the Lightbox plugin is working just fine, but when I click second time my home page appears instead of my contact form.

    Thanks

  5. Tobo
    Member
    Posted 1 year ago #

    I have the same problem. I use WordPress 3.6... Hope somebody can figure that out...

  6. myhero
    Member
    Posted 1 year ago #

    Use plugin: Easy FancyBox

    Adjust the code and place in page/post:

    <div style="display:none" class="fancybox-hidden"><div id="ID-1">
    CONTENT or SHORTCODE HERE
    </div>
    </div>
    <a href="#ID-1" class="fancybox">LINK TEXT</a>

    Problem solved - this also opens gravity forms in a lightbox

  7. webmakers2011
    Member
    Posted 1 year ago #

    Thanks myhero. That's a very appropriate nickname! Your solution has worked like a charm!

    Best Regards!

  8. wireframe74
    Member
    Posted 1 year ago #

    I manage to sort this by linking to latest fancybox pack js files 1.3.5 and using wp_enqueue_script function to load this as follows:

    function my_scripts_method() {
    	wp_enqueue_script(
    	'custom-script',
    	get_stylesheet_directory_uri() . '/js/jquery.fancybox-1.3.5.pack.js',
    	array( 'jquery' )
    	);

    No need for additional plugin :)

  9. ievii
    Member
    Posted 1 year ago #

    I have same problem, but i can't solve it. I use new wordpress version 3.6.1. but i realy how the problem sove. I know stupid question > maybe someone could help solve this problem step by step?

  10. mr_dw
    Member
    Posted 1 year ago #

    I just managed to get this working, here's how -
    It must be the old version of jquery that twenty twelve calls that is causing the problem, so if you put this in your functions.php in your child theme it works!

    add_action('wp_enqueue_scripts', 'no_more_jquery');
    function no_more_jquery(){
        wp_deregister_script('jquery');
        wp_register_script('jquery', "http" .
        ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") .
        "://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js", false, null);
        wp_enqueue_script('jquery');
    }

    if this is the first item in your child functions.php then put

    <?php

    before it, and

    ?>

    after it.
    This strips out the old jquery ('no_more_jquery') and adds in google's newer one (ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js)

    I got this info from here just fyi

  11. Michael Mann
    Member
    Posted 1 year ago #

    Thanks mr_dw. This is the perfect solution to this issue. Much appreciated as I just use this plugin for a client and ran into this very issue.

  12. dontbegauche
    Member
    Posted 1 year ago #

    I'm having the same problem, but my theme is using the most current versions of jquery (1.10.2) and fancybox (1.3.4).

    Any recommendations?

  13. wireframe74
    Member
    Posted 1 year ago #

    I think it sounds like you need to load those two scripts within your functions.php file wp_enque_script

  14. dontbegauche
    Member
    Posted 1 year ago #

    They are already being loaded though.

  15. wireframe74
    Member
    Posted 1 year ago #

    1.3.5 is the latest version of Fancybox I believe. You mentioned you have 1.3.4

  16. dontbegauche
    Member
    Posted 1 year ago #

    OK got it, I updated to fancbox 2.1.5 and it is working now. Thanks ;-)

  17. shnalla
    Member
    Posted 1 year ago #

    thanks for the tips mr_dw. Works well for me ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic