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!
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');
}
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.
AndrΓ© DausΒ Fair enough, I'm not on the dev team so can't comment. Anyway hope the snippet helps π
Jesse BenjaminΒ it gets the job done. π
Did you tried using the Inhering Theme option?
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.
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
Lukman NakibΒ custom classes only work with !important. But I will give all the recommendations a try again. Thanks!