• Hello there,

    I am using latest 4.8 version WordPress and having issue on displaying widget’s fields of text editor and other media widgets such as audio, video, image widget which was added on latest version of WP.
    I want to display the widget specific form fields on click its edit button on ajax appended div on admin navigation menu although i had added footer script by using add below action hook as

    add_action( 'admin_print_footer_scripts-nav-menus.php', array( $this, 'admin_print_footer_scripts' ) );
    add_action( 'admin_print_scripts-nav-menus.php', array( $this, 'admin_print_scripts' ) );
    add_action( 'admin_print_styles-nav-menus.php', array( $this, 'admin_print_styles' ) );
    
    public function admin_print_footer_scripts( $hook ) {
    do_action( 'admin_footer-widgets.php' );
    }
    public function admin_print_scripts( $hook ) {
    do_action( 'admin_print_scripts-widgets.php' );
    }
    public function admin_print_styles( $hook ) {
    do_action( 'admin_print_styles-widgets.php' );
    }

    This helps to add widget scripts on footer of navigation menu page and i have created button on each menu item, and on click it,a popup form will be opened where i have lists of all wordpress widgets on dropdown. User clicked on widget and specific widget will be appended on popup form section. On click widget edit button, the form is not displayed on ajax call for text widget and other media widgets. Can you please help me if anything i am missing ? Is there any js code needed to be used since the newly added widget is based on backbone.js implementation. Please do advise.

    Thanks

  • The topic ‘Text Widget and Media Widget not displaying form on ajax appended div’ is closed to new replies.