Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown menu on bootstrap 5 #513

Closed
wants to merge 1 commit into from
Closed

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
Walker v5 automation moved this from In progress to Done 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
Walker v5
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants