Page 1 of 1
Adding a link next to Home
Posted: Thu May 10, 2012 5:22 am
by matthewtimothy
At the top of the layout there is your normal "home", "wishlist", "My Account", "Shopping Cart" and "Checkout". I am wanting to add another link at the top that will not destroy any themes or cause issues but preserve the theme. Any idea on how to do this or tutorials?? If you can tell me where to look into editing also would be great.
Re: Adding a link next to Home
Posted: Thu May 10, 2012 5:26 am
by matthewtimothy
I need to add a link named "clients" that redirects to a subdomain page for them to login to.
Re: Adding a link next to Home
Posted: Thu May 10, 2012 5:33 am
by dirtboy
find this file catalog > view > theme > your theme > template > common > header.tpl
find this code
Code: Select all
<div class="links"><a href="<?php echo $home; ?>"><?php echo $text_home; ?></a><a href="<?php echo $wishlist; ?>" id="wishlist-total"><?php echo $text_wishlist; ?></a><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a><a href="<?php echo $shopping_cart; ?>"><?php echo $text_shopping_cart; ?></a><a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>
you can enter your link here using this code
Code: Select all
<a href="http://www.yourlinkhere.com/">Clients</a>
make sure to put code between <div class="links"> and </div> to make it show on the same line as the other links.
Re: Adding a link next to Home
Posted: Thu May 10, 2012 7:13 am
by matthewtimothy
dude awesome!!! and this will preserve all the CSS?? I will be testing this site in the next month after finishing the catalog
Re: Adding a link next to Home
Posted: Thu May 10, 2012 7:19 am
by dirtboy
yes, this simply hard codes a link next to the php links. it will not affect anything except having an extra link.