menus - Does the Default theme of Wordpress like 2016, 2017 and 2019 uses Walker_Nav_Menu Class

I want to know if these themes uses Walker_Nav_Menu class. As I open the files I can't see a Walker_Nav_Class or I

I want to know if these themes uses Walker_Nav_Menu class. As I open the files I can't see a Walker_Nav_Class or I could not find it. And I want to know what they use to display the Menu and Submenus. Thanks in advance.

I want to know if these themes uses Walker_Nav_Menu class. As I open the files I can't see a Walker_Nav_Class or I could not find it. And I want to know what they use to display the Menu and Submenus. Thanks in advance.

Share Improve this question edited Sep 25, 2019 at 4:40 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Sep 25, 2019 at 3:00 Lucifer LeviLucifer Levi 932 silver badges11 bronze badges 1
  • If we create a sub menu for the parent menu, the wp_nav_menu() generate the sub menu's with ul li tag, the ul tag contains the class of 'sub-menu'. In style they written the design for submenus – Gopala krishnan Commented Sep 25, 2019 at 4:57
Add a comment  | 

1 Answer 1

Reset to default 0

They just use the default markup. You only need to define your own walker class if you’re changing the markup from the default. Believe it or not, but it’s perfectly possible to create menus without Bootstrap!

The only exceptions to the default menu markup is that some of the default themes, like Twenty Nineteen, use the walker_nav_menu_start_el filter to add SVG social icons to its social links menu, and SVG icons for the dropdown indicators. But this does not involve a custom walker class.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745131788a4613006.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信