Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何在不将functions.php中的show_home设置为false的情况下隐藏菜单中的主页,我只想将其隐藏在特定页面中。我怎样才能做到这一点?:)
我建议用 CSS 隐藏它:
.page-item-X.menu-item-Y { display: none; }
X = 页面 ID Y = 菜单项 ID
这将是最简单和最简单的做事方式。