Combine CSS omitting 2 files
-
Hi,
i am combining CSS files into a single one.
Problems:
1. WPFC is creating multiple files instead a single one (probably is a file size limitation, but it is a nice option to have such as “Combine into a single file”)2. i have 2 CSS file which are not combined. These files were hardcoded in header.php and i have moved to functions.php
function theme_name_scripts() { wp_enqueue_style( 'mean', get_template_directory_uri() . '/mean.css' ); wp_enqueue_style( 'stylesheet-ui', get_template_directory_uri() . '/stylesheet/ui.css' ); } add_action( 'wp_enqueue_scripts', 'theme_name_scripts', 1 );
I know that functions.php is loaded after plugins, so this may be the reason why WPFC is not including these files while processing. There is any workaround for this, maybe to use another hook instead wp_enqueue_scripts (i tried init but no luck).
Thanks in advance
Andrei
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Combine CSS omitting 2 files’ is closed to new replies.