News:

AbanteCart v1.4.2 is released.

Main Menu
support

Removing Storefront Top Sub Menu

Started by familyfirstom, February 19, 2013, 03:12:06 AM

Previous topic - Next topic

familyfirstom

I want to get rid of the Special Offers / Bookmarks / Sitemap / Keywords buttons at the top of the default template but can't find where to remove these in any of the admin options. Can someone please direct me as to where these are located?

abantecart

This is in the template file: storefront/view/default/template/common/header.tpl

Look at these lines:


          <li><a href="<?php echo $special?>" class="special"><?php echo $text_special?></a></li>
          <li class="nav_sep">&nbsp;</li>
          <li><a onclick="bookmark(document.location, '<?php echo addslashes($title); ?>');" class="bookmark"><?php echo $text_bookmark?></a></li>
          <li class="nav_sep">&nbsp;</li>
          <li><a href="<?php echo $contact?>" class="contact"><?php echo $text_contact?></a></li>
          <li class="nav_sep">&nbsp;</li>
          <li><a href="<?php echo $sitemap?>" class="sitemap"><?php echo $text_sitemap?></a></li>
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

rmurrell34608

I was just wondering how to add links to this menu, I would like to add account and login links, but when I add the links just goes to home page - here is the code I am trying to use - <li><a href="<?php echo $account; ?>" class="account"><?php echo $text_account; ?></a></li> - not sure what link should be for this or if it is possible.  Any help would be greatly appreciated.

abantecart

If you need to add link, you can do this 2 ways.

1. Use variable with the code that you created, but you need to add value to in in the controller.
in the template /storefront/view/default/template/common/header.tp:


<li><a href="<?php echo $account?>"><?php echo $text_account?></a></li>


in controller /storefront/controller/common/header.php:
Add:


$this->data['text_account'] = $this->language->get('text_account');
$this->data['account'] = $this->html->getURL('account/account');


2. Add relative portion of URL to the template (lazy way :) )

<li><a href="/index.php?rt=account/account">My Account</a></li>


FYI. For blue menu above, you can add link using admin -> menu without any code changes.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

iStuck

Quote from: familyfirstom on February 19, 2013, 03:12:06 AM
I want to get rid of the Special Offers / Bookmarks / Sitemap / Keywords buttons at the top of the default template but can't find where to remove these in any of the admin options. Can someone please direct me as to where these are located?

How do you remove this from the additional free theme ?

abantecart

In template2 extension edit below file:

extensions/template2/storefront/view/template2/template/common/header.tpl

Locate code
      <div class="flt_left">
        <ul id="info_links">
          <li><a href="<?php echo $special?>" class="special"><?php echo $text_special?></a></li>
          <li><a href="<?php echo $contact?>" class="contact"><?php echo $text_contact?></a></li>
          <li><a href="<?php echo $sitemap?>" class="sitemap"><?php echo $text_sitemap?></a></li>
        </ul>
      </div>
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Forum Rules Code of conduct
AbanteCart.com 2010 -