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

menus - How to dynamically populate a dropdown

programmeradmin0浏览0评论

I am tasked with creating a subnav in the body of our custom-built pages. The nav's last item is supposed to be a clickable dropdown (a "more" button) that can dynamically populate if extra pages are added via the dashboard. I'm trying to figure out how to code this in PHP and JS without a plug-in. Any sort of point in the right direction is greatly appreciated!

I am tasked with creating a subnav in the body of our custom-built pages. The nav's last item is supposed to be a clickable dropdown (a "more" button) that can dynamically populate if extra pages are added via the dashboard. I'm trying to figure out how to code this in PHP and JS without a plug-in. Any sort of point in the right direction is greatly appreciated!

Share Improve this question asked May 21, 2020 at 21:05 bfoley_teamugbfoley_teamug 111 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

Well, here's my best shot, although when I add another item to the dropdown, the styling gets weird. https://codepen.io/bfoley650/pen/PoZwKeb

发布评论

评论列表(0)

  1. 暂无评论