Post by xtreme » Thu Mar 01, 2012 9:11 am

Is there a way to add a HOME button to the main horizonal nav?
I tried it using the categories along with the mod that takes out product count but that just left a space below the cat/product page that says HOME.

http://www.vapingxtreme.com
An Electronic Cigarette and Vaping Store
Take a break......Vape!


User avatar
New member

Posts

Joined
Sat Feb 25, 2012 9:34 pm

Post by george_o » Thu Mar 01, 2012 11:25 am

You have to edit catalog/theme/yourtheme/template/common/header.tpl and search for:

Code: Select all

<div id="menu">
  <ul>
    <?php foreach ($categories as $category) { ?>
    <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
      <?php if ($category['children']) { ?>
      <div>
        <?php for ($i = 0; $i < count($category['children']);) { ?>
        <ul>
          <?php $j = $i + ceil(count($category['children']) / $category['column']); ?>
          <?php for (; $i < $j; $i++) { ?>
          <?php if (isset($category['children'][$i])) { ?>
          <li><a href="<?php echo $category['children'][$i]['href']; ?>"><?php echo $category['children'][$i]['name']; ?></a></li>
          <?php } ?>
          <?php } ?>
        </ul>
        <?php } ?>
      </div>
      <?php } ?>
    </li>
    <?php } ?>
  </ul>
</div>
Replace with:

Code: Select all

<div id="menu">
  <ul>
  	<li><a href="<?php echo $home; ?>"><?php echo $text_home; ?></a></li>
    <?php foreach ($categories as $category) { ?>
    <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
      <?php if ($category['children']) { ?>
      <div>
        <?php for ($i = 0; $i < count($category['children']);) { ?>
        <ul>
          <?php $j = $i + ceil(count($category['children']) / $category['column']); ?>
          <?php for (; $i < $j; $i++) { ?>
          <?php if (isset($category['children'][$i])) { ?>
          <li><a href="<?php echo $category['children'][$i]['href']; ?>"><?php echo $category['children'][$i]['name']; ?></a></li>
          <?php } ?>
          <?php } ?>
        </ul>
        <?php } ?>
      </div>
      <?php } ?>
    </li>
    <?php } ?>
  </ul>
</div>

dropbox.com - 2GB free online storage.


User avatar
New member

Posts

Joined
Sun Jan 15, 2012 2:28 am

Post by xtreme » Sat Mar 03, 2012 7:29 am

Thanks George.

http://www.vapingxtreme.com
An Electronic Cigarette and Vaping Store
Take a break......Vape!


User avatar
New member

Posts

Joined
Sat Feb 25, 2012 9:34 pm

Post by xtreme » Sat Mar 03, 2012 8:04 am

Worked absolutly great!
Thanks again.

http://www.vapingxtreme.com
An Electronic Cigarette and Vaping Store
Take a break......Vape!


User avatar
New member

Posts

Joined
Sat Feb 25, 2012 9:34 pm
Who is online

Users browsing this forum: No registered users and 41 guests