最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

walker - How can I creat custom menu with bootstrap

programmeradmin1浏览0评论

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
发布评论

评论列表(0)

  1. 暂无评论