Friday, March 1, 2024

JNews Theme: How to enable WPBakery for posts

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; […]