Hello. I am using a child of OceanWP. The functions.php file contains the following code to enqueue the parent theme’s css:
==========================================
function oceanwp_child_enqueue_parent_style() {
// Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update your theme)
$theme = wp_get_theme( ‘OceanWP’ );
$version = $theme->get( ‘Version’ );
// Load the stylesheet
wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( ‘oceanwp-style’ ), $version );
}
add_action( ‘wp_enqueue_scripts’, ‘oceanwp_child_enqueue_parent_style’ );
=============================
I added the the following code to load bootstrap:
=============================
function sbf_files() {
// font awesome
wp_enqueue_style(‘font-awesome’, ‘//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css’);
// Latest compiled and minified CSS
wp_enqueue_style(“mrt_bootstrap”,”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css”,””,””);
// Latest compiled and minified JavaScript
wp_enqueue_script(“mrt_bootstrap_js”,”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js”,”jquery”,””,FALSE);
}
add_action(‘wp_enqueue_scripts’, ‘sbf_files’);
===========================================
After refreshing the front end the bootstrap classes are working but the menu links have disappeared. Has anyone else had this problem and have they come up with a solution?