• Hello,
    Is there a function I could add to my functions.php file to disable the wishlist mobile version ?
    Thanks for your help !
    Regards

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

    (@yithemes)

    Hi

    Next version of the plugin will contain yith_wcwl_is_wishlist_responsive filter, for this purpose

    Here an example of usage:

    add_filter( 'yith_wcwl_is_wishlist_responsive', '__return_false' );
    

    Please, stay tuned with our update feed, in order to be informed about the release of the next version of the plugin

    Meanwhile you can go with

    add_filter( 'yith_wcwl_is_wishlist_responsive', '__return_false' );
    add_filter( 'yith_wcwl_localize_script', function($loc) {
        $loc['actions']['load_mobile_action'] = 'no-mob-ver';
    } );
    add_filter( 'yith_wcwl_template_part_hierarchy', function($data) {
        foreach($data as $k => $v) $data[$k] = str_replace('-mobile.php', '.php', $v);
        return $data;
    } );

    Sorry, add
    return $loc;
    after
    $loc['actions']['load_mobile_action'] = 'no-mob-ver';

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