CSS doesn’t load without dashicons css
-
Is there a reason why Ninja Forms is dependent on dashicons.css?
I deregistered the dashicons.css except in the admin to speed up pageload. The side effect of that is that the CSS of Ninja Forms doesn’t load.
Here’s the function.php that breaks Ninja Forms:
add_action( ‘wp_enqueue_scripts’, ‘dequeue_css’ );
function dequeue_css() {if ( ! is_user_logged_in() ) {
wp_deregister_style( ‘dashicons’ );
}
}If you look at the page linked. You’ll see the Ninja Forms honeypot below the submit button.
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘CSS doesn’t load without dashicons css’ is closed to new replies.