Magento News

 

Magento – How to replace ‘Home’ in the breadcrumb?

Hi

I’m just wondering if anyone has had any experience in formatting the breadcrumb in Magento?

I would like to replace the link that currently displays the text ‘HOME’ with an image.

I thought it would be a simple case of replacing some text with a picture but it seems the ‘HOME’ text/link is dynamically created as this is all that is in the breadcrumbs.phtml:

<?php if($crumbs && is_array($crumbs)): ?>
<div class="breadcrumbs">
    <ul>
        <?php foreach($crumbs as $_crumbName=>$_crumbInfo): ?>
            <li class="<?php echo $_crumbName ?>">
            <?php if($_crumbInfo['link']): ?>
                <a href="<?php echo $_crumbInfo['link'] ?>" title="<?php echo $this->htmlEscape($_crumbInfo['title']) ?>"><?php echo $this->htmlEscape($_crumbInfo['label']) ?></a>
            <?php elseif($_crumbInfo['last']): ?>
                <strong><?php echo $this->htmlEscape($_crumbInfo['label']) ?></strong>
            <?php else: ?>
                <?php echo $this->htmlEscape($_crumbInfo['label']) ?>
            <?php endif; ?>
            <?php if(!$_crumbInfo['last']): ?>
                <span>&gt;</span>
            <?php endif; ?>
            </li>
        <?php endforeach; ?>
    </ul>
</div>
<?php endif; ?>

Magento – How to replace ‘Home’ in the breadcrumb?

Possibly Related Posts:


 

Leave a Reply