Support » Theme: WP Bootstrap Starter » Child Themes

  • To make it easier to activate a child them, I suggest the following modification to your theme’s functions.php file. In the function wp_bootstrap_starter_scripts function, place the following if statement:

    if ( get_template_directory() != get_stylesheet_directory() ) {
            wp_enqueue_style( 'wp-bootstrap-starter-parent-style', get_template_directory_uri() . '/style.css' );

    before the statement that queues the style.css script.

    This makes sure that the parent style.css is loaded just before the child style.css is loaded in the event there is a child theme active.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child Themes’ is closed to new replies.