Skip to content

Snippet: 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 );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top