skip to Main Content

Please have a look at the code of breadcrumbs.phtml:

    <?php if($crumbs && is_array($crumbs)): ?>
    <!-- SLIDER START HERE-->
    <div class="container">
      <div class="innerSlider relative">
        <div class="innerSlidercontent">
          <h2>“People with thyroid problems avoid eating millet on a daily basis 
      as it is believed to contain some”</h2>
        </div>
        <div class="insideSlidePic"> <img src="<?php echo $this-
       >  getSkinUrl('images/barnyard_millet_bisi_belle_bhaat_recipe.jpg'); ?>"  
      alt=""> </div>
      </div>
      <div class="clear"></div>
      <ul class="routeMenu">
        <?php foreach($crumbs as $_crumbName=>$_crumbInfo): ?>
            <li class="<?php echo $_crumbName ?>">
            <?php if($_crumbInfo['link']): 

               if($_crumbInfo['title']=="Home"){
                $_crumbInfo['link']=Mage::getUrl();
            }


            ?>
                <a class="sc_hover" href="<?php echo $_crumbInfo['link'] ?>" 
    title="<?php echo $this->escapeHtml($_crumbInfo['title']) ?>"><?php echo 
   $this->escapeHtml($_crumbInfo['label']) ?></a>
            <?php elseif($_crumbInfo['last']): ?>
                <span><?php echo $this->escapeHtml($_crumbInfo['label']) ?>
      </span>
            <?php else: ?>
                <?php echo $this->escapeHtml($_crumbInfo['label']) ?>
            <?php endif; ?>
            <?php if(!$_crumbInfo['last']): ?>

            <?php endif; ?>
            </li>
        <?php endforeach; ?>
      </ul>
      </div>
      <div class="clear"></div>

      <!-- SLIDER END HERE-->
       <?php endif; ?>

Help me to figure out why anchor links are not present in my bread crumb but the text is coming. Here I see the code some different than others bread crumbs is that code right.

2

Answers


  1. //Either replace below code and check or replace file with base file.

     <?php if($crumbs && is_array($crumbs)): ?>
        <!-- SLIDER START HERE-->
        <div class="container">
          <div class="innerSlider relative">
    
            <div class="innerSlidercontent">
              <h2>“People with thyroid problems avoid eating millet on a daily basis 
          as it is believed to contain some”</h2>
            </div>
            <div class="insideSlidePic"> <img src="<?php echo $this->getSkinUrl('images/barnyard_millet_bisi_belle_bhaat_recipe.jpg'); ?>"  
          alt=""> </div>
          </div>
    
          <div class="clear"></div>
    
          <ul class="routeMenu">
            <?php foreach($crumbs as $_crumbName=>$_crumbInfo): ?>
                <li class="<?php echo $_crumbName ?>">
                <?php if($_crumbInfo['link']): 
    
                   if($_crumbInfo['title']=="Home"){
                    $_crumbInfo['link']=Mage::getUrl();
                }
                ?>
                    <a class="sc_hover" href="<?php echo $_crumbInfo['link'] ?>" 
        title="<?php echo $this->escapeHtml($_crumbInfo['title']) ?>"><?php echo 
       $this->escapeHtml($_crumbInfo['label']) ?></a>
                <?php elseif($_crumbInfo['last']): ?>
                    <span><?php echo $this->escapeHtml($_crumbInfo['label']) ?>
          </span>
                <?php else: ?>
                    <?php echo $this->escapeHtml($_crumbInfo['label']) ?>
                <?php endif; ?>
                <?php if(!$_crumbInfo['last']): ?>
    
                <?php endif; ?>
                </li>
            <?php endforeach; ?>
          </ul>
          </div>
          <div class="clear"></div>
          </div>
    
          <!-- SLIDER END HERE-->
           <?php endif; ?>
    

    Alternate solution copy base file to your custon design path are as follow.

    app/design/frontend/base/default/template/page/html/breadcrumbs.phtml
    
    copy from base to your custom design path.
    
    app/design/frontend/your-package/your-theme/template/page/html/breadcrumbs.phtml
    
    Login or Signup to reply.
  2. Please check with default magento theme.I think breadcrumb will work. If breadcrumb is working your default theme then check your current custom theme by renaming your layout and theme files.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search