• Resolved Md Abdullah Al Arif

    (@faithcoder)


    Hi,

    I would like to import the Slider Revolution demo templates along with the Theme demos. Is it possible with the OCDI? I’ve tried the following way, but it’s not working:


    function ocdi_after_import_setup() {

    $slider_files = array(
    THEME_REMOTE_CONTENT . '/slider_templates/three.zip',
    THEME_REMOTE_CONTENT . '/slider_templates/slider-2.zip',
    THEME_REMOTE_CONTENT . '/slider_templates/slider-21.zip'

    );

    if ( class_exists( 'RevSlider' ) ) {
    $slider = new RevSlider();

    foreach ( $slider_files as $slider_file ) {
    $slider->importSliderFromPost( true, true, $slider_file );
    }
    }
    }

    add_action( 'ocdi/after_import', 'ocdi_after_import_setup' );

    Any advice would be appreciated.

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Support Victoria Sakal

    (@sakalvictoria)

    Hi, @faithcoder!

    Thanks for getting in touch.

    Yes, it should be possible, and you choose the correct path using the ocdi/after_import hook. But you’ll need to contact Slider Revolution support to verify the import code.

    Best regards.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.