Disable The Mobile 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( 'ocean_localize_array', 'my_disable_sidr_displace', 20 );

All PHP snippets should be added via a child theme's functions.php file.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.