Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / adding "contact us" link to categories menu bar

adding "contact us" link to categories menu bar

Locked

Started by derek_bryant on 7 Sep 2008, 9:34 AM · Views: 2,287

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
7 Sep 2008, 9:34 AM
#1
derek_bryant avatar

derek_bryant

Zen Follower

Join Date:
Jul 2008
Location:
Bristol UK
Posts:
162
Plugin Contributions:
0

adding "contact us" link to categories menu bar

Hi

please can anyone advise on how to add a "contact us" link at the end of the categories links e.g.
category 1, category 2, ..... "contact us"

I have tried making a "contact us" category but there is no hyperlink facility without adding a product

thanks

Derek

7 Sep 2008, 4:54 PM
#3
ronpeled avatar

ronpeled

Zen Follower

Join Date:
Sep 2004
Location:
LA, California
Posts:
111
Plugin Contributions:
0

Re: adding "contact us" link to categories menu bar

There are many ways, however the safest method I can think of at the moment may be to overwrite the template file for the categories sidebox in your template. The file that needs to be overridden is /includes/templates/<your template>/sideboxes/tpl_categories.php.

Notice that there is some logic that needs to be carried over from the default template. So it is best if you first copy the file from the /template_default/ folder.

You probably want to add your <a> tag around line 60. This will show the new link right after the list of categories. Make sure it is outside of the loops.

Ron Peled

7 Sep 2008, 5:36 PM
#5
derek_bryant avatar

derek_bryant

Zen Follower

Join Date:
Jul 2008
Location:
Bristol UK
Posts:
162
Plugin Contributions:
0

Re: adding "contact us" link to categories menu bar

thanks Ron

I am looking to put the "contact us" link in the horizontal banner categories list

does this still apply?

Derek