WordPress:将下拉菜单更改为 ul
我正在编辑一个名为“Nova”的 WordPress 主题,而且我对编辑 PHP 还比较陌生。
目前,该模板对父子页面使用下拉菜单。
我想改变这一点,而不是下拉菜单,只有列,顶行是父页面,正下方的行是子页面。
我将如何实现这个目标?谢谢你! ^_^
I'm editing a WordPress theme named "Nova", and I'm relatively new to editing PHP.
Currently, the template uses drop-down menus for parent-child pages.
I would like to change that so rather than a drop down menu, there's just columns, with the top row being the parent page, and the rows directly beneath being the child pages.
How would I accomplish this? Thank you! ^_^
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
标记已经存在,只需更改样式表即可更改外观。您不必编辑任何代码。本质上,浮动父项,使它们彼此相邻,不要浮动子项,使它们像列表默认情况下垂直显示。
The markup is already there, it's just a matter of changing the stylesheet to change the appearance. You don't have to edit any code. Essentially, float the parents so they're next to each other, don't float the children so they appear vertically as a list does by default.