Child Theme and js_composer.min.css

Posted in: Newsmag
Post count: 8

When using a child theme, the file js_composer.min.css is being loaded AFTER the parent and child theme style sheets. The documentation for a child theme adds the style sheets in functions.php using the function:


add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 1000);

However, when this loads the child theme, the js_composer.min.css file is loaded after the parent and child style sheets. Is this a bug or was it intentional?

If the priority above is changed to 1001, which matches the priority from the file td_wp_booster_functions.php (below), the style sheets are loaded in the correct order.

td_wp_booster_functions.php:

/* ----------------------------------------------------------------------------
* front end css files
*/
add_action('wp_enqueue_scripts', 'load_front_css', 1001); // 1001 priority because visual composer uses 1000

Post count: 23312

Hello twitchylegs,

We will make some further investigations in this regard and if we will find some errors in this regard, we will consider to fix it in our future updates. If you have encountered any problems ins this regard, please let us known and we will take a closer look in this regard.

Thanks for your understanding!

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