JNews Theme: How to enable WPBakery for posts

0
158

In JNews, WPBakery in posts is turned off by default.  To turn it on, add the code below to the theme’s child theme functions.php.

add_filter( 'vc_check_post_type_validation' , 'jnews_vc_post_type', 99, 2 );
function jnews_vc_post_type( $value, $type ) {
	if ( $type === 'page' || $type === 'post' ) {
		return true;
	} else {
		return false;
	}
}

source: Jegtheme Support

LEAVE A REPLY

Please enter your comment!
Please enter your name here