Snippets: 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 );

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)