admin管理员组

文章数量:1332721

I'm trying to create bootstrap collapsing navbar for WordPress template. I have to add some HTML properties such as data-toggle. After researching, I found that must customize the Walker class but start_lvl and start_el just effecting on sub menu.

Generally, how can I create bootstrap collapsing navbar like w3schools and the sublist displayed like here (drop-down menu in collapsing navbar)?

Thanks

I'm trying to create bootstrap collapsing navbar for WordPress template. I have to add some HTML properties such as data-toggle. After researching, I found that must customize the Walker class but start_lvl and start_el just effecting on sub menu.

Generally, how can I create bootstrap collapsing navbar like w3schools and the sublist displayed like here (drop-down menu in collapsing navbar)?

Thanks

Share Improve this question edited Jun 17, 2020 at 18:05 Mort 1305 9835 silver badges18 bronze badges asked Jun 17, 2020 at 10:45 Mohammad MohammadiMohammad Mohammadi 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

I think you can use this simple class:

  • https://github/wp-bootstrap/wp-bootstrap-navwalker

本文标签: walkerHow can I creat custom menu with bootstrap