Okay
  Public Ticket #1839450
Drop Down Menus do not display when I wish to create a table
Closed

Comments

  • Tim Farrell started the conversation

    When I try to create a table from scratch or import an excel table, the create table button will not display the drop down options.

  •  2,572
    Aleksandar replied

    Hello Tim.

    Thank You for Your purchase.

    There is probably a conflict with the bootstrap.js files.

    Please go to wpDataTables main Settings on Your wp-admin page. You'll see Include full bootstrap front-end and Include full bootstrap back-end. Disable the second slider (Include full bootstrap back-end), hit Apply and refresh Your page.

    5192777348.png

    If that doesn't work, please try this:

    Go to Plugins page and disable wpDataTables.

    Then go to Plugins/Editor on Your wp-admin page.

    2784341923.png

    In the top right corner select wpDataTables and go to source/class.wdttools.php.

    1726088732.png

    In that file, around line 900, You'll find this code:

    if (!is_admin() && get_option('wdtIncludeBootstrap') == 1) {
             wp_enqueue_script('wdt-bootstrap', WDT_JS_PATH . 'bootstrap/bootstrap.min.js', array('jquery', 'wdt-bootstrap-select'), WDT_CURRENT_VERSION, true);
            }else if (is_admin() && get_option('wdtIncludeBootstrapBackEnd') == 1){
                wp_enqueue_script('wdt-bootstrap', WDT_JS_PATH . 'bootstrap/bootstrap.min.js', array('jquery', 'wdt-bootstrap-select'), WDT_CURRENT_VERSION, true);
            }else{
                wp_enqueue_script('wdt-bootstrap', WDT_JS_PATH . 'bootstrap/noconf.bootstrap.min.js', array('jquery', 'wdt-bootstrap-select'), WDT_CURRENT_VERSION, true);
            }

    Go ahead and comment the last two wp_enqueue_script lines, so the code looks like this:

    if (!is_admin() && get_option('wdtIncludeBootstrap') == 1) {
             wp_enqueue_script('wdt-bootstrap', WDT_JS_PATH . 'bootstrap/bootstrap.min.js', array('jquery', 'wdt-bootstrap-select'), WDT_CURRENT_VERSION, true);
            }else if (is_admin() && get_option('wdtIncludeBootstrapBackEnd') == 1){
              //  wp_enqueue_script('wdt-bootstrap', WDT_JS_PATH . 'bootstrap/bootstrap.min.js', array('jquery', 'wdt-bootstrap-select'), WDT_CURRENT_VERSION, true);
            }else{
              //  wp_enqueue_script('wdt-bootstrap', WDT_JS_PATH . 'bootstrap/noconf.bootstrap.min.js', array('jquery', 'wdt-bootstrap-select'), WDT_CURRENT_VERSION, true);
            }

    Hit Update File on the bottom of that page; activate wpDataTables from the main Plugins page again, and that should solve the issue.

    Please let me know if You managed to resolve the issue.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables