0

我有一个我没有制作的自定义主题,我想知道是否有任何方法可以制作它,以便我可以隐藏菜单项(因此它们不会出现在菜单栏上)。也许样式表中的某些内容可以指示它?请帮忙!

 <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 -->
4

1 回答 1

0

如果您不在这里发布一些代码,就无法告诉您要隐藏什么,但是您为什么不直接“显示:无;” 菜单里?

*menu-item* {display: none;} //where menu item is the path to the menu item
于 2014-05-15T14:05:35.520 回答