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 badge1 Answer
Reset to default 0I think you can use this simple class:
- https://github/wp-bootstrap/wp-bootstrap-navwalker
本文标签: walkerHow can I creat custom menu with bootstrap
版权声明:本文标题:walker - How can I creat custom menu with bootstrap 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742339830a2456374.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论