Magento类别说明没有显示应该如此

时间:2015-02-09 20:42:40

标签: php magento

当我输入magento类别的描述时,它会在标题后面显示内容:

enter image description here

“测试测试”是描述。我希望描述显示在标题下方。这是我渲染代码的代码(/template/catalog/category::view.phtml):

<div class="page-title category-title title-r title-visible">
    <?php if($this->IsRssCatalogEnable() && $this->IsTopCategory()): ?>
    <a href="<?php echo $this->getRssLink() ?>" class="link-rss"><?php echo $this->__('Subscribe to RSS Feed') ?></a>
    <?php endif; ?>
    <h1><?php echo $_helper->categoryAttribute($_category, $_category->getName(), 'name'); ?></h1>
    <?php if($_description=$this->getCurrentCategory()->getDescription()): ?>
    <span class="category-description std"> <?php echo $_helper->categoryAttribute($_category, $_description, 'description') ?></span>
    <?php endif; ?>
</div>

这是输出的代码:

<div class="page-title title-rewite">
    <h1>
        Bisquertt Family Vineyards
         test test
    </h1>
</div>

为什么在呈现描述之前关闭<h1>标记时会发生这种情况?

0 个答案:

没有答案