Forums / Basic Configuration / Adding a home link inside the categories sidebox?

Adding a home link inside the categories sidebox?

Started by 34ford on 15 Apr 2013, 12:03 PM · Views: 1,120

Results 1 to 3 of 3
15 Apr 2013, 12:03 PM
#1
34ford avatar

34ford

New Zenner

Join Date:
Jul 2011
Location:
North Carolina
Posts:
14
Plugin Contributions:
0

Adding a home link inside the categories sidebox?

Would it be possible to add a link to the stores home page in the categories side box?

Dennis

15 Apr 2013, 1:19 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Adding a home link inside the categories sidebox?

Using your templates and overrides you can edit the file:
/includes/templates/your_templates_dir/sideboxes/tpl_categories.php

and add the code in RED:

  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
[B]  $content .= '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . HEADER_TITLE_CATALOG . '</a>' . '<br />' . "\n";
[/B]  for ($i=0;$i<sizeof($box_categories_array);$i++) {

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

15 Apr 2013, 5:53 PM
#3
34ford avatar

34ford

New Zenner

Join Date:
Jul 2011
Location:
North Carolina
Posts:
14
Plugin Contributions:
0

Re: Adding a home link inside the categories sidebox?

Super. Works great.

Thank you again.

Dennis