Skip to content

Conversation

dani-ode
Copy link

@dani-ode dani-ode commented Feb 12, 2021

Change "data-toggle" to "data-bs-toggle"

Change "data-toggle" to "data-bs-toggle"
$atts['class'] = 'dropdown-toggle nav-link';
$atts['id'] = 'menu-item-dropdown-' . $item->ID;
$atts['href'] = '#';
$atts['data-bs-toggle'] = 'dropdown';
Copy link
Collaborator

@IanDelMar IanDelMar Feb 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to WP Bootstrap Navwalker and thanks for contributing.

One note to your proposed change: Switching from $atts['data-toggle' = 'dropdown' to $atts['data-bs-toggle' = 'dropdown' will break the walker for people using Bootstrap 4.

@IanDelMar
Copy link
Collaborator

See #500

@IanDelMar
Copy link
Collaborator

Closing this in favour of #500

@IanDelMar IanDelMar closed this Apr 5, 2021
@dani-ode dani-ode deleted the patch-1 branch April 8, 2021 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants