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
open the popup to select a file or upload a file
when I click nothing happens, and when the page loads there are several JS errors, while deleting the image works but I can no longer add an image
Block::make( __( 'Main menu in home page', 'jakekrantz' ) ) ->set_category( 'jakekrantz', __( 'JakekRantz', 'jakekrantz' ) ) ->set_icon( 'menu-alt3' ) ->add_fields( [ Field::make( 'image', 'image', __( 'Background image', 'jakekrantz' ) ), Field::make( 'complex', 'menu_items', __( 'Menu items', 'jakekrantz' ) ) ->add_fields( [ Field::make( 'text', 'title', __( 'Item title', 'jakekrantz' ) )->set_width( 50 ), Field::make( 'radio', 'item_type', __( 'Item type', 'jakekrantz' ) )->add_options( [ 'link' => __( 'Link', 'jakekrantz' ), 'post' => __( 'Post', 'jakekrantz' ), 'file' => __( 'File', 'jakekrantz' ), ] )->set_default_value( 'link' ), Field::make( 'association', 'page_link', __( 'Page link', 'jakekrantz' ) ) ->set_types( [ [ 'type' => 'post', 'post_type' => 'page', ], ] )->set_max( 1 )->set_width( 50 ) ->set_conditional_logic( [ 'relation' => 'AND', [ 'field' => 'item_type', 'value' => 'post', 'compare' => '=', ], ] ), Field::make( 'text', 'link', __( 'Link', 'jakekrantz' ) )->set_conditional_logic( [ 'relation' => 'AND', [ 'field' => 'item_type', 'value' => 'link', 'compare' => '=', ], ] ), Field::make( 'file', 'file_to_pop_up', __( 'File', 'jakekrantz' ) )->set_conditional_logic( [ 'relation' => 'AND', [ 'field' => 'item_type', 'value' => 'file', 'compare' => '=', ], ] ), Field::make( 'image', 'item_icon', __( 'Item icon', 'jakekrantz' ) )->set_width( 50 ), Field::make( 'text', 'icon_class', __( 'Icon class', 'jakekrantz' ) )->set_width( 50 ), ] ), ] ) ->set_render_callback( function ( $fields, $attributes ) { get_template_part( 'template-parts/blocks/block', 'main-menu', [ 'fields' => $fields, 'attributes' => $attributes, ] ); } );
jakekrantz.docker.localhost-1732787286132.log
If you set SCRIPT_DEBUG to false everything works
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
Expected Behavior
open the popup to select a file or upload a file
Actual Behavior
when I click nothing happens, and when the page loads there are several JS errors, while deleting the image works but I can no longer add an image
Container definition
Steps to Reproduce the Problem
Comments
jakekrantz.docker.localhost-1732787286132.log
If you set SCRIPT_DEBUG to false everything works
The text was updated successfully, but these errors were encountered: