NavWalker Bootstrap Error (won’t dropdown)

Wrong container_id and menu_class. See WP Bootstrap NavWalker Usage section. <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘depth’ => 2, ‘container’ => ‘div’, ‘container_class’ => ‘collapse navbar-collapse’, ‘container_id’ => ‘bs-example-navbar-collapse-1’, ‘menu_class’ => ‘nav navbar-nav’, ‘fallback_cb’ => ‘WP_Bootstrap_Navwalker::fallback’, ‘walker’ => new WP_Bootstrap_Navwalker(), ) );

WordPress \ Bootstrap 4 not building breadcrumbs correctly

the_title() echoes the title, by default. Use get_the_title() instead. function get_breadcrumb() { echo ‘<nav aria-label=”breadcrumb”>’; echo ‘<ol class=”breadcrumb”>’; if(!is_home() && !is_front_page()) { echo ‘<li class=”breadcrumb-item”><a href=”‘.home_url().'” rel=”nofollow”>Home</a></li>’; if (is_page()) { echo ‘<li class=”breadcrumb-item active” aria-current=”page”>”‘.get_the_title().'”</li>’; } } echo ‘</ol>’; echo ‘</nav>’; }

how to install bootstrap to twentyfourteen theme

The best way to include bootstrap in your theme is to enqueue bootstrap CSS and JS in your functions.php file. This is how you can enqueue bootstrap CSS and JS from CDN hosted version. function my_scripts_enqueue() { wp_register_script( ‘bootstrap-js’, ‘//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js’, array(‘jquery’), NULL, true ); wp_register_style( ‘bootstrap-css’, ‘//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css’, false, NULL, ‘all’ ); wp_enqueue_script( ‘bootstrap-js’ ); wp_enqueue_style( … Read more