Problems with Visual Composer – js_composer_front

Posted in: Newspaper
Post count: 38

I’m using a query monitor plugin (https://wordpress.org/plugins/query-monitor/) on our site and one thing keeps cropping up when using it on the front end – I keep getting the following error – Missing Styles – js_composer_front

After having a search around on Google, this missing stylesheet appears to be a common problem – one that is no longer used but still has a reference somewhere. Is there any way to get around this with the bundled version of visual composer? I’m using version 4.4.4 with our Newspaper theme.

Thanks

Post count: 38

Upon closer inspection it appears to be the ‘enqueueStyle’ function starting at line 540 in class-vc-base.php in plugins/js_composer/include/classes/core.

If I comment out the line ‘wp_enqueue_style( ‘js_composer_front’ );’ the error goes away.


/**
* Enqueue base css class for VC elements and enqueue custom css if exists.
*/
public function enqueueStyle() {
$post = get_post();
if ( $post && preg_match( '/vc_row/', $post->post_content ) ) {
wp_enqueue_style( 'js_composer_front' );
}
wp_enqueue_style( 'js_composer_custom_css' );
}

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.