-
giannisdallas
ParticipantHello again, thanks once more for this amazing theme!
Is it possible to have a menu functionning like the menu on Pinboard theme for example?
I would like the main category to be clickable and not repeating itself.
If not which file I should edit in a child theme? I’m a bit lost in your file structure.Thank a lot
Daniel Tara
KeymasterIn your child theme’s functions.php file add this code:
remove_filter( 'wp_nav_menu_objects', 'enlightenment_bootstrap_menu_parent_class' );
Then in your custom styles add these rules:
.menu-item-has-children:hover .sub-menu { display: block; }
giannisdallas
ParticipantAlthough, for some reason I had to delete the filter from the bootstrap.php file.
Remove_filter didn’t work as expected.
Daniel Tara
KeymasterTry this instead:
add_action( 'after_setup_theme', 'enlightenment_remove_bootstrap_menu_parent_class', 50 ); function enlightenment_remove_bootstrap_menu_parent_class() { remove_filter( 'wp_nav_menu_objects', 'enlightenment_bootstrap_menu_parent_class' ); }
Chicken_3H
ParticipantHi Daniel.
Thank you for this awesome free theme.
How can I remove the duplicated main category from the menu WITHOUT the hover effect? Though looking cool, it makes the sub-menus unaccessable on any of my mobile devices. I want the default “Click-to-open” option.
Thanks in advance for your help.
Christian
Tagged: menu
You must be logged in to reply to this topic.