You can try this way:
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar top-bar"></span>
<span class="icon-bar middle-bar"></span>
<span class="icon-bar bottom-bar"></span>
</button>
<a class="navbar-brand" href="https://wordpress.stackexchange.com/questions/313884/<?php coldstar_the_page_link("front-page.php' ); ?>">
<img src="<?php bloginfo('template_url'); ?>/images/companylogo.png" class="img-responsive hidden-md" alt="Bed Centre Grimsby Logo">
<img src="<?php bloginfo('template_url'); ?>/images/logo.png" class="img-responsive hidden-lg hidden-sm hidden-xs" alt="">
</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="top-contact hidden-xs hidden-sm">
<li class="phone">
<span class="icon"></span>
01472 267660
</li>
<li class="email">
<span class="icon"></span> <a href="mailto:[email protected]">[email protected]</a>
</li>
<li class="facebook">
<a href="https://www.facebook.com/Bedcentregrimsby/" target="_blank"><img src="http://beta.bedcentregrimsby.co.uk/wp-content/themes/bedcentregrimsby/assets/images/facebook-logo.png"></a>
</li>
</ul>
<?php
wp_nav_menu( array(
'container' => false,
'menu_id' => 'joey-ireland',
'menu_class' => 'nav navbar-nav navbar-right',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'theme_location' => 'primary', // must match in register_nav_menus
'depth' => 5,
'fallback_cb' => false,
'walker' => new Joey_Bootstrap_Walker(),
));
class Joey_Bootstrap_Walker extends Walker_Nav_Menu {
function start_lvl(&$output, $depth = 0, $args = Array() ) {
$indent = str_repeat("\t", $depth);
$output .= "\n$indent<ul class=\"dropdown-menu\">\n";
}
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
if ( isset( $args->item_spacing ) && 'discard' === $args->item_spacing ) {
$t="";
$n = '';
} else {
$t = "\t";
$n = "\n";
}
$indent = ( $depth ) ? str_repeat( $t, $depth ) : '';
$has_child = false;
if ( $args->walker->has_children !== false ) {
$has_child = true;
}
$classes = empty( $item->classes ) ? array() : (array) $item->classes;
$classes[] = 'menu-item-' . $item->ID;
$args = apply_filters( 'nav_menu_item_args', $args, $item, $depth );
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args, $depth ) );
// Check our custom has_children property.
$class_drop = '';
if ( $has_child ) {
$class_drop = $class_names !== '' ? ' dropdown' : 'dropdown';
}
if ( $class_names ) {
$class_names=" class="" . esc_attr( $class_names ) . $class_drop . '"';
} else {
$class_names = $class_drop !== '' ? ' class="' . $class_drop . '"' : '';
}
$id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args, $depth );
$id = $id ? ' id="' . esc_attr( $id ) . '"' : '';
$output .= $indent . '<li' . $id . $class_names .'>';
$atts = array();
$atts['title'] = ! empty( $item->attr_title ) ? $item->attr_title : '';
$atts['target'] = ! empty( $item->target ) ? $item->target : '';
$atts['rel'] = ! empty( $item->xfn ) ? $item->xfn : '';
$atts['href'] = ! empty( $item->url ) ? $item->url : '';
$atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args, $depth );
$attributes="";
foreach ( $atts as $attr => $value ) {
if ( ! empty( $value ) ) {
$value = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value );
$attributes .= ' ' . $attr . '="' . $value . '"';
}
}
if ( $has_child === true ) {
$attributes .= ' class="dropdown-toggle" data-toggle="dropdown"';
}
$title = apply_filters( 'the_title', $item->title, $item->ID );
$title = apply_filters( 'nav_menu_item_title', $title, $item, $args, $depth );
$item_output = $args->before;
$item_output .= '<a'. $attributes .'>';
$item_output .= $args->link_before . $title . $args->link_after;
$item_output .= '</a>';
$item_output .= $args->after;
$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
}
}
?>
</div>
</div>
</nav>
<div class="feature-nav">
<div class="container">
<div class="col-xs-12 col-sm-4 col-md-4 delivery">
<div class="icon"></div>
<div class="text">
<p>FREE Local Delivery<span>We deliver for FREE within a distance of 8 miles.</span></p>
</div>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 parking">
<div class="icon"></div>
<div class="text">
<p>FREE Parking<span>Our carpark is free for our customers.</span></p>
</div>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 disability">
<div class="icon"></div>
<div class="text">
<p>Wheelchair Friendly<span>Our store is accessible for wheelchairs. </span></p>
</div>
</div>
</div>
</div>
For documentation, see here:
- register_nav_menu – Registers a single custom Navigation Menu in the custom menu editor
- wp_nav_menu – Displays a navigation menu.
- Walker_Nav_Menu: – Core class used to implement an HTML list of nav menu items.
- Walker::start_lvl – Starts the list before the elements are added.
- Walker::end_lvl – Ends the list of after the elements are added.
- Walker::start_el – Starts the element output.
- Walker::end_el – Ends the element output, if needed.