walker - How can I creat custom menu with bootstrap

I'm trying to create bootstrap collapsing navbar for WordPress template. I have to add some HTML properties such as

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

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

相关推荐

  • walker - How can I creat custom menu with bootstrap

    I'm trying to create bootstrap collapsing navbar for WordPress template. I have to add some HTML properties such as

    11小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

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

关注微信