【问题标题】:Add css to users magento将 css 添加到用户 magento
【发布时间】:2015-05-03 01:36:56
【问题描述】:

我想这是可能的,但如何?我只需要为登录到我们网上商店的用户/客户添加额外的 CSS。通过 XML 还是 Phtml?

斯蒂安

【问题讨论】:

  • 你能说得更具体些吗?
  • 每当用户登录到网上商店时,我都需要添加另一个 css 文件。有一些 CSS 代码实际上不需要包含,除非用户登录我想移动到它自己的文件

标签: css magento php


【解决方案1】:

添加

<customer_logged_in>
        <reference name="head">
            <action method="addCss"><stylesheet>css/user.css</stylesheet></action>
        </reference>
    </customer_logged_in>

当客户登录时,Into 模板的 local.xml 将加载该文件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多