AbanteCart Community

eCommerce construction => Templates => Topic started by: familyfirstom on February 19, 2013, 03:12:06 AM

Title: Removing Storefront Top Sub Menu
Post by: 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?
Title: Re: Removing Top Menu
Post by: abantecart on February 19, 2013, 04:27:16 AM
This is in the template file: storefront/view/default/template/common/header.tpl

Look at these lines:

Code: [Select]
          <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>
Title: Re: Removing Storefront Top Sub Menu
Post by: rmurrell34608 on February 22, 2013, 07:59:33 AM
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.
Title: Re: Removing Storefront Top Sub Menu
Post by: abantecart on February 22, 2013, 09:20:06 AM
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:

Code: [Select]
<li><a href="<?php echo $account?>"><?php echo $text_account?></a></li>

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

Code: [Select]
$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 :) )
Code: [Select]
<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.
Title: Re: Removing Storefront Top Sub Menu
Post by: iStuck on May 04, 2013, 11:21:15 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 ?
Title: Re: Removing Storefront Top Sub Menu
Post by: abantecart on May 04, 2013, 03:26:42 PM
In template2 extension edit below file:

Code: [Select]
extensions/template2/storefront/view/template2/template/common/header.tpl
Locate code
Code: [Select]
      <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>