January 23, 2013 at 11:00 pm
#3101
Keymaster
Hello Martin,
The only way this would be possible I think would be ditch the framework function that enqueues those CSS files.
remove_action( 'wp_enqueue_scripts', themeblvd_include_styles' );
And then, you’d just include the framework’s four CSS files from your own function that’s hooked to “wp_enqueue_scripts” in your Child theme.
my_styles() { wp_enqueue_style( 'bootstrap', TB_FRAMEWORK_URI . '/frontend/assets/plugins/bootstrap/css/bootstrap.min.css', array(), '2.2.1' ); wp_enqueue_style( 'fontawesome', TB_FRAMEWORK_URI . '/frontend/assets/plugins/fontawesome/css/font-awesomeness.min.css', array(), '2.0' ); wp_enqueue_style( 'prettyphoto', TB_FRAMEWORK_URI . '/frontend/assets/plugins/prettyphoto/css/prettyPhoto.css', array(), '3.1.3' ); // your stylesheet between bootstrap and framework... wp_enqueue_style( 'themeblvd', TB_FRAMEWORK_URI . '/frontend/assets/css/themeblvd.min.css', array(), TB_FRAMEWORK_VERSION ); // your other stylesheets } add_action( 'wp_enqueue_scripts', 'my_styles' );
In this case, you can also ditch the use of $themeblvd_framework_stylesheets
in the stylesheets that follow, as you’re doing everything here in your own function.