We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi I'm trying to display upload field only when a hero layout is hero-layout-7 but it doesn't seem to work.
3.0.22 ( Kirki Plugin )
theme_mods
/*------------------------------------------------------
-------------------------------------------------------*/
Kirki::add_field( 'envy-blog_config', array( 'type' => 'upload', 'settings' => 'envy-blog_hero_custom_video_url', 'label' => esc_html__( 'Custom Video', 'envy-blog' ), 'description' => esc_html__( 'Upload your video in .mp4 format and minimize its file size for best results.', 'envy-blog' ), 'section' => 'envy-blog_hero_content_section', 'active_callback' => array( array( 'setting' => 'envy-blog_hero_layout', 'operator' => '==', 'value' => 'hero-layout-7', ), ), ) );
Info:- If change type => text then active_callback is working properly.
type => text
Kirki::add_field( 'envy-blog_config', array( 'type' => 'text', 'settings' => 'envy-blog_hero_custom_video_url', 'label' => esc_html__( 'Custom Video', 'envy-blog' ), 'description' => esc_html__( 'Upload your video in .mp4 format and minimize its file size for best results.', 'envy-blog' ), 'section' => 'envy-blog_hero_content_section', 'active_callback' => array( array( 'setting' => 'envy-blog_hero_layout', 'operator' => '==', 'value' => 'hero-layout-7', ), ), ) );
The text was updated successfully, but these errors were encountered:
Same here.
Sorry, something went wrong.
7ff5e37
Should be fixed in the develop branch 👍 Fix will be included in v3.0.23
No branches or pull requests
Issue description:
Hi
I'm trying to display upload field only when a hero layout is hero-layout-7 but it doesn't seem to work.
Version used:
3.0.22 ( Kirki Plugin )
Using theme_mods or options?
theme_mods
Code to reproduce the issue (config + field(s))
/*------------------------------------------------------
Custom Video URL Control
-------------------------------------------------------*/
Info:-
If change
type => text
then active_callback is working properly./*------------------------------------------------------
Custom Video URL Control
-------------------------------------------------------*/
The text was updated successfully, but these errors were encountered: