Something is going wrong when I try to use the bootstrap nav with a child theme and I can't figure it out for the life of me.
The parent theme is called Revera.
This is a bootstrap theme. It includes bootstrap.min.js and bootstrap.min.css files. However, the version used appears old and I think it is what is causing the bootstrap Navbar I added to not quite work (it seems to function, but the styling isn't right. The three bars for the mobile menu are missing and the word "Toggle Navigation" shows up inside the nav button) .
What I would like to do is use an updated version of bootstrap with a child theme. But every way I've tried to achieve this doesn't seem to work. In the functions.php of the child theme I have:
function enqueue_child_theme_styles() {
wp_register_script( 'bootstrap-js', get_template_directory_uri() . '/bootstrap/js/bootstrap.min.js', array('jquery'), NULL, true );
wp_register_style( 'bootstrap-css', get_template_directory_uri() . '/bootstrap/css/bootstrap.min.css', false, NULL, 'all' );
wp_enqueue_script( 'bootstrap-js' );
wp_enqueue_style( 'bootstrap-css' );
}
add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX);
The above code doesn't seem to do anything however. I've tried all kinds of things to try and troubleshoot this, but nothing seems to work. What am I missing?