Controlling the position of dropdow submenu
Without seeing the current code, you could try the folllowing: Use padding-top over the <ul> tag and colour the <li> tag’s background colour in the dark grey. This way you avoid using top / margin-top.
Without seeing the current code, you could try the folllowing: Use padding-top over the <ul> tag and colour the <li> tag’s background colour in the dark grey. This way you avoid using top / margin-top.
This is really a problem i think you should solve with javascript if you are looking to solve it with code. I would suggest that you could probably use the wp_is_mobile to add a class to your HTML tag If that class exists on your html tag run some JS that binds to all the … Read more
You can use a jQuery plugin to do this. I think the site you linked uses FlexSlider, you can find some documentation here. It shouldn’t be too hard to set up.
Where to place a svg chevron down in my custom walker?
You can try this. add_action( ‘admin_menu’, ‘register_my_custom_menu_page’ ); function register_my_custom_menu_page() { add_menu_page( ‘My Custom Page’, ‘My Custom Page’, ‘manage_options’, ‘my-top-level-slug’, ”, ‘dashicons-menu’, 6 ); add_submenu_page( ‘my-top-level-slug’, ‘My Custom Page’, ‘My Custom Page’, ‘manage_options’, ‘my-top-level-slug’, ‘custom_subpage_first’); add_submenu_page( ‘my-top-level-slug’, ‘My Custom Submenu Page 1’, ‘My Custom Submenu Page’,’manage_options’, ‘my-secondary-slug’, ‘custom_subpage_second’); } function custom_subpage_first() { ?> <div class=”wrap”> … Read more
Show all menu levels except top level. How to exclude top level of a menu?
how to link local pages with flags in submenu
I think there’s couple of ways doing this. 1) register_nav_menu, add your menu in Appearance > Menus to the registered menu location, then let wp_nav_menu handle the markup for you 2) register_nav_menu, add menu in Appearance > Menus, then use wp_get_nav_menu_items to get the menu items and write the html markup yourself. 3) Have an … Read more
I can extend the Walker_Nav_Menu class, but after taking a look to it, it seems there’s no way to know when an sub-menu will contain other sub-menu, because there’s no data available about its children You may want to look again mate. The Walker::display_element(…) method take the “List of elements to continue traversing” (understand children … Read more
You can do what you need to with the wp_list_pages() function: <?php wp_list_pages( [ ‘child_of’ => 92, ‘title_li’ => false, ‘sort_column’ => ‘menu_order’, ] ); ?>