Enqueue Optimised CSS after WooCommerce CSS?
-
Is it possible to enqueue the optimised Autopimize css after other css that i’ve told it to ignore.
Currently the optimised css appears at the very top and the woocommerce below it.
I usually use the following to ensure my CSS appears below the woocomerce css, is it possible to do the same with Autopimize?
/** * Enqueue Main Site Styles AFTER WooCommerce Styles * * @since 1.0.0 * @access public * @return void */ function enqueue_style_after_wc(){ $deps = class_exists( 'WooCommerce' ) ? array( 'woocommerce-layout', 'woocommerce-smallscreen', 'woocommerce-general' ) : array(); wp_enqueue_style( 'global-style', get_stylesheet_directory_uri() . '/css/global.css' , $deps, '1.0' ); }
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
The topic ‘Enqueue Optimised CSS after WooCommerce CSS?’ is closed to new replies.