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

please add option for custom dropdown menu classes #458

Open
jkd77 opened this issue Jan 8, 2020 · 0 comments
Open

please add option for custom dropdown menu classes #458

jkd77 opened this issue Jan 8, 2020 · 0 comments

Comments

@jkd77
Copy link

jkd77 commented Jan 8, 2020

Thanks for contributing this, super helpful.

I just ran into a limitation that I thought might impact others. I had not run into an issue with this before, but I needed to control dropdown menu alignment and found I could not.

I added the following within start_lvl() replacing line 50:

if ( isset( $args->dropdown_menu_class ) ) { $classes = explode(" ", $args->dropdown_menu_class ); } else { // Default class to add to the file. $classes = array( 'dropdown-menu' ); }

Then usage looks like such:

'dropdown_menu_class' => 'dropdown-menu dropdown-menu-right'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Walker v5
  
To do
Development

No branches or pull requests

2 participants