I have install woocommerce and Conditional Themes plugins to my wordpress, it works fine if im directly visiting an URL.However, the Conditional Themes plugins does not work when woocommerce redirect to /cart/ from /checkout/.
The function that trigger theme switch is

add_action( 'plugins_loaded', function() {
        if( is_plugin_active( 'wp-conditional-themes/main.php' ) ) {
            // Plugin is active
            Conditional_Themes_Manager::register( 'mobile', 'wp_is_mobile' );
        }
    }, 100 );

Does any one know how to fix that?

Read more here: WordPress Conditional Themes plugin does not work for redirected pages


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: