Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wpublish2

    (@wpublish2)

    Maybe it can be useful to other people. I created a secondary demo import:

    // Dumb install option that will be hidden, because OCDI needs a second
    // install option to display the preview image. Without this, OCDI shows only an 'Import Demo Data' button
    
    array(
    	'import_file_name'             => 'Hidden import',
    	'local_import_file'            => $data_path_full . 'import-demo-data.xml',
    	'local_import_widget_file'     => $widgets_file_full,
    	'local_import_customizer_file' => $menu_file_full,
    	'import_preview_image_url'     => $preview_image,
    ),

    And I properly ‘injected’ this inline CSS on WordPress admin:

    .js-ocdi-gl-item-container .ocdi__gl-item.js-ocdi-gl-item + div {
        display: none !important;
    }
    • This reply was modified 6 years, 6 months ago by wpublish2.
    Plugin Author Gregor Capuder

    (@capuderg)

    Hi,

    as you figured it out, there is no way, to display the preview image, if only one demo import is defined.

    If your workaround functions as you desire, then great, but won’t be changing the plugin to display a preview image for only one demo import.

    Take care!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display preview image even if only one import option’ is closed to new replies.