Support » Theme: The Bootstrap » Boostrap child theme

  • Hi hope you can help. I am using the radix starter theme and I am trying to add a child theme. In functions.php I have this code


    add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );
    function enqueue_parent_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/includes/css/bootstrap.min.css’ );


    It seems to load the style.css file but it is not loading the bootstrap.css or maybe the bootstrap java script file. Do I need to add the uri for the javascript file?

    I have tried to add this wp_enqueue_script(‘parent-style’, get_stylesheet_directory_uri().’/includes/js/bootstrap.min.js’);

    I can tell it is not working as the navabar is not working with regards to mobile toggle etc.

    Hope you can help thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Boostrap child theme’ is closed to new replies.