Order of CSS load – Child Theme of WP Bootstrap Starter
-
Hi there,
I’m quite new to using wordpress but i’m starting to work on a new site and I’ve created a child theme based on WP Bootstrap Starter theme.
I’ve been trying to overwrite some CSS tags from the parent theme using the CTC-style.css but I my changes are not taking affect. Looking at the underlying CSS loads in the page I think the problem is that the theme has a number of preset styles but these styles are loading after the CTC-style in the eventual page.
The CTC configurator generates the following in the child functions.php file:
function child_theme_configurator_css() {
wp_enqueue_style( ‘chld_thm_cfg_separate’, trailingslashit( get_stylesheet_directory_uri() ) . ‘ctc-style.css’, array( ‘chld_thm_cfg_parent’,’wp-bootstrap-starter-style’ ) );
}I think the problem I have though is that in my configuration of the theme I’ve selected the preset style “superhero” and this loads a later style sheet via a function wp-bootstrap-starter-superhero in the parent theme.
Is there a way to tell CTC to move the CTC-style.css after the superhero CSS rather than loading before?
Thanks very much
Andrew
The topic ‘Order of CSS load – Child Theme of WP Bootstrap Starter’ is closed to new replies.