Snippets: Disable The Mobile Sidebar Displace Animation

// Disable mobile displace for the sidr mobile menu
function my_disable_sidr_displace( $array ) {

    // Set sidrDisplace to false
    $array['sidrDisplace'] = false;

    // Return array
    return $array;

add_filter( 'wpex_localize_array', 'my_disable_sidr_displace', 20 );

Snippet Type: PHP

Posted Under: Mobile

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)