Post by matthewtimothy » Thu May 10, 2012 5:22 am

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.

Active Member

Posts

Joined
Thu Nov 10, 2011 6:39 am

Post by matthewtimothy » Thu May 10, 2012 5:26 am

I need to add a link named "clients" that redirects to a subdomain page for them to login to.

Active Member

Posts

Joined
Thu Nov 10, 2011 6:39 am

Post by dirtboy » Thu May 10, 2012 5:33 am

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.

“Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.”
- Henry Ford


User avatar
Active Member

Posts

Joined
Wed Mar 07, 2012 3:04 pm

Post by matthewtimothy » Thu May 10, 2012 7:13 am

dude awesome!!! and this will preserve all the CSS?? I will be testing this site in the next month after finishing the catalog

Active Member

Posts

Joined
Thu Nov 10, 2011 6:39 am

Post by dirtboy » Thu May 10, 2012 7:19 am

yes, this simply hard codes a link next to the php links. it will not affect anything except having an extra link.

“Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.”
- Henry Ford


User avatar
Active Member

Posts

Joined
Wed Mar 07, 2012 3:04 pm
Who is online

Users browsing this forum: No registered users and 15 guests