• Resolved giologist

    (@giologist)


    Because the css is added to the footer and not the header, there’s a split second where the form shows up unstyled. In order to fix this, i’ve added the following to the theme’s functions.php

    // Preload Ninja Forms
    if (function_exists( 'ninja_forms_display_css' ) ) :
    function load_ninjaformscss_header() {
        wp_register_style( 'ninja-forms-display', NINJA_FORMS_URL .'css/ninja-forms-display.css?nf_ver=' . NF_PLUGIN_VERSION );
        wp_enqueue_style( 'ninja-forms-display' );
    }
    add_action('wp_enqueue_scripts', 'load_ninjaformscss_header');
    endif;

    https://www.ads-software.com/plugins/ninja-forms/

  • The topic ‘CSS bug, forms loading un-styled’ is closed to new replies.