Snippet: Disable Responsiveness
Make sure to change 'PAGE_ID' with the ID of the page where you want to disable responsiveness or change the entire is_page() conditional for your own conditional checks.
// Disable theme responsive meta viewport
add_action( 'wpex_is_layout_responsive', '__return_false' );
// Remove VC responsive class
add_action( 'body_class', function( $classes ) {
$classes[] = 'vc_non_responsive';
$classes = array_diff( $classes, array( 'vc_responsive' ) );
return $classes;
}, 99 );
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)
We recommend Code Snippets (100% Free) or WPCode (sponsored)