Post by inc.ognito » Sat Sep 17, 2011 12:32 am

Hi there. I'd like to know if anyone can either point me to the correct post (I've searched and can't find anything... here and in Google) or tell me how to insert an external link into the top nav?

Insightful replies are MOST appreciated! :)
Last edited by inc.ognito on Sat Sep 17, 2011 12:51 am, edited 1 time in total.

Newbie

Posts

Joined
Sat Aug 06, 2011 8:50 am

Post by uksitebuilder » Sat Sep 17, 2011 12:42 am

open: catalog/view/theme/default/template/common/header.tpl

find

Code: Select all

<?php if ($categories) { ?>
<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>
<?php } ?>
<div id="notification"></div>
change to

Code: Select all

<div id="menu">
  <ul>
<?php if ($categories) { ?>
    <?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 } ?>
<?php } ?>

<li><a href="http://www.YOURSITELINK.com" onclick="window.open('http://www.YOURSITELINK.com'); return false;">TEXT TO DISPLAY</a></li>

  </ul>
</div>
<div id="notification"></div>
Notice the line of code 4 up from the bottom

ImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by inc.ognito » Sat Sep 17, 2011 12:51 am

Thank you soooooo very much!!! :)
uksitebuilder wrote:open: catalog/view/theme/default/template/common/header.tpl

find

Code: Select all

<?php if ($categories) { ?>
<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>
<?php } ?>
<div id="notification"></div>
change to

Code: Select all

<div id="menu">
  <ul>
<?php if ($categories) { ?>
    <?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 } ?>
<?php } ?>

<li><a href="http://www.YOURSITELINK.com" onclick="window.open('http://www.YOURSITELINK.com'); return false;">TEXT TO DISPLAY</a></li>

  </ul>
</div>
<div id="notification"></div>
Notice the line of code 4 up from the bottom

Newbie

Posts

Joined
Sat Aug 06, 2011 8:50 am
Who is online

Users browsing this forum: CuBin and 23 guests