• Resolved Purnendu

    (@impurnendu)


    Hi,
    how to disable this on desktop only. It is good for mobile, but on desktop, it disabled the two columns layout! How o disable it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    thank you for contacting us.
    Please add following code in the file functions.php of your theme and plugin will be enabled only for mobile devices.

    add_action('template_redirect','yith_wcmsc_enable_plugin_only_on_mobile_view');
    
    function yith_wcmsc_enable_plugin_only_on_mobile_view(){
    
        if( !wp_is_mobile() ){
            add_filter('pre_option_yith_wcms_enable_multistep','yith_wcmsc_customise_yith_wcms_enable_multistep_option');
        }
    
    }
    
    function yith_wcmsc_customise_yith_wcms_enable_multistep_option(){
        return 'no';
    }

    I hope you can appreciate my work.
    Let me know.

    Thread Starter Purnendu

    (@impurnendu)

    Thanks…

    Plugin Author YITHEMES

    (@yithemes)

    You are welcome!

    If you like the plugin and our support, please, support us with a 5-star review. It takes just a minute.
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable on Desktop site’ is closed to new replies.