How to add a new button to the header?
Posted: Wed Jun 22, 2011 1:05 pm
So, if you would like to add a new button to the navigation bar in the header (where the other buttons are located) to have a link back to your home page or your forum, you have to edit some files.
1. open /catalog/language/english/extension/navigation.php and add e.g.
below
2. open /catalog/template/default/module/navigation.tpl and add
below
3. open /catalog/extension/module/navigation.php and add
below
4. change the width of #bar in the default css files if needed.
Before: After:
1. open /catalog/language/english/extension/navigation.php and add e.g.
Code: Select all
$_['text_myhomepage'] = 'My Home Page';
Code: Select all
$_['text_checkout'] = 'Checkout';
Code: Select all
<a href="http://www.mysite.com"><?php echo $text_myhomepage; ?></a>
Code: Select all
<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>
Code: Select all
$view->set('text_myhomepage', $language->get('text_myhomepage'));
Code: Select all
$view->set('text_checkout', $language->get('text_checkout'));
Before: After: