Fix divider in Bootstrap nav
Bootstrap nav water was using the wrong class for the dropdown so I have adjusted that.
This commit is contained in:
parent
2ea24eecd2
commit
6d7783700c
|
@ -62,9 +62,9 @@ class understrap_WP_Bootstrap_Navwalker extends Walker_Nav_Menu {
|
||||||
* a 0 if the strings are equal.
|
* a 0 if the strings are equal.
|
||||||
*/
|
*/
|
||||||
if ( strcasecmp( $item->attr_title, 'divider' ) == 0 && $depth === 1 ) {
|
if ( strcasecmp( $item->attr_title, 'divider' ) == 0 && $depth === 1 ) {
|
||||||
$output .= $indent . '<li class="divider" role="presentation">';
|
$output .= $indent . '<li class="dropdown-divider" role="presentation">';
|
||||||
} else if ( strcasecmp( $item->title, 'divider' ) == 0 && $depth === 1 ) {
|
} else if ( strcasecmp( $item->title, 'divider' ) == 0 && $depth === 1 ) {
|
||||||
$output .= $indent . '<li class="divider" role="presentation">';
|
$output .= $indent . '<li class="dropdown-divider" role="presentation">';
|
||||||
} else if ( strcasecmp( $item->attr_title, 'dropdown-header' ) == 0 && $depth === 1 ) {
|
} else if ( strcasecmp( $item->attr_title, 'dropdown-header' ) == 0 && $depth === 1 ) {
|
||||||
$output .= $indent . '<li class="dropdown-header" role="presentation">' . esc_html( $item->title );
|
$output .= $indent . '<li class="dropdown-header" role="presentation">' . esc_html( $item->title );
|
||||||
} else if ( strcasecmp( $item->attr_title, 'disabled' ) == 0 ) {
|
} else if ( strcasecmp( $item->attr_title, 'disabled' ) == 0 ) {
|
||||||
|
|
Reference in New Issue