Support » Plugin: YITH WooCommerce Compare » YITH WooCommerce Compare: plugin not working in mobile mode

  • jodeyf



    To be honest you could pick any url there all the same. Viewing on desktop looks good and works fine. On mobile well this is a different story please see url.

    Also compare buttons on each product are not lined up either

    Is there any fixs for both of these issues? Or can this be turned off via mobile detection

    kind regards


    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES


    Hi there,
    thank you for contacting us.
    I checked your site and I fixed the issue relative buttons, you need use following CSS code

    @media(max-width: 480px){
        .woocommerce ul.products li.product .button.add_to_cart_button {
        float: left;
        top: 0;
    .woocommerce ul.products li.product {
        float: right;

    About the other issue, I didn’t understand what exactly you mean, can you make a screenshot?

    In any case if you want disable the plugin for mobile devices, you need add following code in the file functions.php of your theme.

    if( !function_exists( 'yith_disable_woocompare_plugin_at_mobile_view' ) ){
        function yith_disable_woocompare_plugin_at_mobile_view(){
            if( wp_is_mobile() ){
                global $yith_woocompare;
                if( $yith_woocompare instanceof YITH_Woocompare ){
                    remove_action( 'woocommerce_single_product_summary', array( $yith_woocompare->obj, 'add_compare_link' ), 35 );
                    remove_action( 'woocommerce_after_shop_loop_item', array( $yith_woocompare->obj, 'add_compare_link' ), 20 );

    Please check and let us know.

Viewing 1 replies (of 1 total)
  • The topic ‘YITH WooCommerce Compare: plugin not working in mobile mode’ is closed to new replies.