diff --git a/header.php b/header.php index ec81538..9af38b8 100644 --- a/header.php +++ b/header.php @@ -70,7 +70,7 @@ $container = get_theme_mod( 'understrap_container_type' ); 'fallback_cb' => '', 'menu_id' => 'main-menu', 'depth' => 2, - 'walker' => new WP_Bootstrap_Navwalker(), + 'walker' => new Understrap_WP_Bootstrap_Navwalker(), ) ); ?> diff --git a/inc/class-wp-bootstrap-navwalker.php b/inc/class-wp-bootstrap-navwalker.php index cd598e1..71b52d9 100644 --- a/inc/class-wp-bootstrap-navwalker.php +++ b/inc/class-wp-bootstrap-navwalker.php @@ -20,13 +20,13 @@ */ /* Check if Class Exists. */ -if ( ! class_exists( 'WP_Bootstrap_Navwalker' ) ) { +if ( ! class_exists( 'Understrap_WP_Bootstrap_Navwalker' ) ) { /** * WP_Bootstrap_Navwalker class. * * @extends Walker_Nav_Menu */ - class WP_Bootstrap_Navwalker extends Walker_Nav_Menu { + class Understrap_WP_Bootstrap_Navwalker extends Walker_Nav_Menu { /** * Starts the list before the elements are added. @@ -363,7 +363,7 @@ if ( ! class_exists( 'WP_Bootstrap_Navwalker' ) ) { if ( $menu_class ) { $fallback_output .= ' class="' . esc_attr( $menu_class ) . '"'; } $fallback_output .= '>'; - $fallback_output .= '