Skip to main content

Disable All Styles From FluentForms

I use modern website builders. While FluentForms is nice on the backend, it is a nightmare to style. Can we get a simple setting that disables ALL styling and just keeps the classes? I don’t need any IDs but they do no harm as long as there is no styling for them. I can then use a custom stylesheet to style the forms as we need. That would be such a tremendous help without the need for doubling styles and using !important directives.

If I had a wish for Xmas, that’d be it!

Jesse Benjamin

AndrΓ© DausΒ this might help out - hope it helps!

add_action('wp_enqueue_scripts', 'jb_dequeue_fluent_forms_styles', 999);
function jb_dequeue_fluent_forms_styles() {
    wp_dequeue_style('fluent-form-public');
    wp_dequeue_style('fluent-form-public-default');
    wp_dequeue_style('fluent-form-styles');
    wp_dequeue_style('fluentform-public-default');
}

AndrΓ© Daus

Jesse BenjaminΒ thank you. I know I can fix things easily. However, the question is why do I have to fix it in the first place? There is already the option to choose a styling, even a custom styling. If styles are first enqueued and then dequeued does not sound like the right way to do. I wish there would just be another setting β€œno style” and then no styles are enqueued at all. That’s the feature request.

Jesse Benjamin

André Daus Fair enough, I'm not on the dev team so can't comment. Anyway hope the snippet helps 🌟

AndrΓ© Daus

Jesse Benjamin it gets the job done. 😎

Lukman Nakib

Did you tried using the Inhering Theme option?

AndrΓ© Daus

Lukman NakibΒ what I am looking for is an option that adds empty classes. That way I could easily style forms without issues my own CSS.

I do not use a theme. I build everything from scratch.

Lukman Nakib

AndrΓ© DausΒ 'ffs_inherit_theme' class is added when inherit theme option is selected, you can use this to add your own style

Or you can add your custom class her

AndrΓ© Daus

Lukman NakibΒ custom classes only work with !important. But I will give all the recommendations a try again. Thanks!