Skip to content

Instantly share code, notes, and snippets.

@adreastrian
Created November 10, 2023 11:46
Show Gist options
  • Save adreastrian/2f42122f6c5dc1bccb25ce88569d72ad to your computer and use it in GitHub Desktop.
Save adreastrian/2f42122f6c5dc1bccb25ce88569d72ad to your computer and use it in GitHub Desktop.
fluent forms inherit theme style

Hook into this filter to set the default theme in the Fluent Forms gutenberg block.

add_filter('fluentform/load_theme_style', function ($preference) {
    return true;
});

Fluent Forms Block in action

You can even use this in the shortcode

[fluentform id="133" theme='ffs_inherit_theme']

You can use this CSS selector ff-inherit-theme-style to apply your custom style

Here is the frontend screenshot Fluent Forms inherit theme in action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment