• Resolved pullyl

    (@pullyl)


    I have embedded my form in a div that is 30% of the width, which is causing it to stretch vertically. How can I either resize this, or disable it? I tried removing the JS line, but that also removes the confirmation box up top. I have temporarily gotten around this by reloading the page, but that isn’t an optimal solution. Thoughts?

Viewing 1 replies (of 1 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @pullyl,

    So we have two different loading gifs that are shown for AJAX subscriptions. One is the circular wpspin_light.gif overlain on the form, and the other one is on the submit button (we call this one loading dots).

    You can use the following filter functions to remove either.

    I’m assuming you mean the circular one overlain on top of the form, and this is the function for that:

    /*** Remove the AJAX wpspin_light loading gif (the one overlain on top of the form) ***/
    add_filter( 'yikes-mailchimp-preloader', 'yikes_mailchimp_remove_loading_gif', 10, 1 );
    
    function yikes_mailchimp_remove_loading_gif( $gif_url ) {
    	return '';
    }

    If you’re referring to the submit button loading dots, you can use this function:

    /*** Remove the AJAX Submit Button loading dots ***/
    add_filter( 'yikes-mailchimp-loading-dots', 'yikes_mailchimp_remove_loading_dots', 10, 1 );
    
    function yikes_mailchimp_remove_loading_dots( $gif_url ) {
    	return '';
    }

    Let me know how that goes!

    Cheers,
    Kevin.

Viewing 1 replies (of 1 total)

The topic ‘Disable / restyle loading gif’ is closed to new replies.