我有一个我没有制作的自定义主题,我想知道是否有办法制作它以便我可以隐藏菜单项(这样它们就不会出现在菜单栏上)。也许样式表中的某些内容可以决定它?请帮忙!
<div id="store" class="clearfix">
<div id="header">
<h2 id="logo" {% if theme.image != blank %}class="image"{% endif %}><a href="/" id="store_home" title="{{ store.name | escape }}">{% if theme.image != blank %}<img height="35"src="{{ theme.image.url }}" />{% endif %}</a></h2>
<div id="top-pages">
<ul>
<li>{{ pages.home | link_to }}</li>{% for page in pages.all %}<li>{{ page | link_to }}</li>{% endfor %}<li>{{ pages.contact | link_to }}</li>
</ul>
</div>
<!-- #top-pages -->
最佳答案
如果不在此处发布一些代码,就无法告诉您要隐藏什么,但您为什么不直接“显示:无;”菜单里?
*menu-item* {display: none;} //where menu item is the path to the menu item
关于css - 如何使用 Big Cartel 隐藏菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23680268/