Magento正在显示顶部(类别)菜单,搜索框和购物车两次。
点击Here is my site link此页面显示菜单搜索框和购物车两次。
在我看来,header.phtml正在执行两次
这是标题xml 我拿了这个/ app / design / frontend / default / buyshop / layout / layout.xml
排名靠前
<block type="buyshopconfig/navigation" name="buyshop.collapsedmenu" as="mobileMenu"
template="page/html/mobilemenu.phtml"/>
<block type="buyshopconfig/navigation" name="buyshop.advmenu.amazing" as="advMenuamazing"
template="page/html/topmenu_amazing.phtml"/>
<reference name="top.menu">
<action method="unsetChild"><name>catalog.topnav</name></action>
<block type="buyshopconfig/navigation" name="catalog.topnav.menu" template="page/html/topmenu.phtml"/>
</reference>
<block type="directory/currency" name="currency" template="page/switch/currency.phtml"/>
<action method="insert">
<block_name_to_insert>top.links</block_name_to_insert>
<sort_relative_to_other_childname/>
<sort_before_or_after/>
<alias>topLinks</alias>
</action>
</reference>
<!--HEADER EOF-->
<reference name="left">
<action method="unsetChild">
<name>topLinks</name>
</action>
<block type="buyshopconfig/navigation" name="leftmenu" as="leftmenu" template="page/html/leftmenu.phtml" before="-"/>
</reference>
<reference name="top.links">
<block type="buyshopconfig/comparelink" name="compare_link"/>
<action method="addLinkBlock">
<blockName>compare_link</blockName>
</action>
</reference>
<!--FOOTER-->
<reference name="footer">
<block type="newsletter/subscribe" name="footer.newsletter" as="footer_newsletter" template="newsletter/subscribe.phtml"/>
</reference>
<!--FOOTER EOF-->
<remove name="catalog.leftnav" />
</default>
<cms_index_index>
<reference name="root">
我怎么能解决这个问题?请帮助我谢谢
答案 0 :(得分:1)
.visible-desktop { 显示:无!重要; }
它适合你 试试这个我只是在firebug中为你测试过这个:))
答案 1 :(得分:0)
祝你好运!
答案 2 :(得分:0)
您好,我曾在同一主题上工作过。 只需尝试将 bootstrap-responsive.css文件行号53 更改为:
.visible-desktop {display: none !important}