【问题标题】:Place a static block at the right side of the logo在标志的右侧放置一个静态块
【发布时间】:2015-05-19 11:36:33
【问题描述】:

我想在其右侧的徽标之后放置一个静态块,但我的静态块位于上方或下方,我已添加来自1coloum.xml 页面的块。

【问题讨论】:

  • 请使用截图或代码示例更详细地提出您的问题

标签: magento static


【解决方案1】:

只需将以下代码放在主题 header.phtml 中的徽标之后。

echo $this->getLayout()->createBlock('cms/block')->setBlockId('example_block_id')->toHtml(); 

那么您可能需要更改一些 css。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-01-13
    • 1970-01-01
    • 2021-07-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多