Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Drop Down Menu Vertical Class can't be removed #888

Closed
steamfunk1 opened this issue Sep 9, 2016 · 4 comments
Closed

Drop Down Menu Vertical Class can't be removed #888

steamfunk1 opened this issue Sep 9, 2016 · 4 comments

Comments

@steamfunk1
Copy link

I am trying to remove the vertical menu class from the drop down menu from the menu-walkers.php but even when i remove it, the class is still applied. why is that?

@derweili
Copy link
Collaborator

Which menu do you mean.
Do you want to remove the vertical class from the mobile nav?
If so, you have to go to the FoundationPress/library/navigation.php and remove it on line 48

@steamfunk1
Copy link
Author

hey @derweili I would like to remove the vertical class from the desktop top-bar-right nav menu submenu.

@derweili
Copy link
Collaborator

derweili commented Sep 13, 2016

This is because the vertical class is not only added by the walker class but also by the Responsive Navigation Javascript.
You can remove the "data-dropdown-menu" attribute from the "items_wrap" value inside the "foundationpress_top_bar_r" function.

But this will break your layout. To get more information about the Responsive Navigation check out the official Foundation Docs http://foundation.zurb.com/sites/docs/responsive-navigation.html

@steamfunk1
Copy link
Author

Hey @derweili thanks i appreciate it, I just removed the vertical class in the library/menu-walkers.php $output .= "\n$indent<ul class=\"dropdown menu vertical \" data-toggle>\n"; then i added data-vertical-class="NewClass" to the navigation.php 'items_wrap' => '<ul id="%1$s" class="%2$s desktop-menu" data-dropdown-menu data-vertical-class="horizontal">%3$s</ul>', Incase anyone else was wondering.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants