Originally Posted by
happangl7
Hi all,
I want to have one of the categories in my left sidebar link to an external page. specifically I'd like "scent guide" to be able to link to "www.earthlybody.com/scent-guide.html" Would anyone know which file I have to edit to do this? I've already looked at tpl_categories.php and I can't seem to find where this one link is.
link to website:
www.earthlybody.com/shop
Any help would be greatly appreciated.
Thanks
It can be done, open:
/includes/templates/YOUR_TEMPLATE_NAME/sideboxes/tpl_categories.php
or copy tpl_categories.php from ( /includes/templates/template_default/sideboxes/ ) to above location
Find:
PHP Code:
// skip if this is for the document box (==3)
} else {
$content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
Replace with:
PHP Code:
// skip if this is for the document box (==3)
} else {
if ($box_categories_array[$i]['path'] == 'cPath=6') {
$content .= '<a class="' . $new_style . '" href="' . HTTP_SERVER . DIR_WS_CATALOG . 'scent-guide.html' . '">';
} else {
$content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
}
Good luck!
Bookmarks