Apologies if this has come up in another thread, but I have tried search several times with no luck.
I'm new to OpenCart, and having my first attempt at creating a template.
The main issue that I have discovered so far is to do with the information pages. When on the "Terms & Conditions" page for example, the navigation link to that page remains in it's normal state.
However on all product or category pages, a <b> is wrapped around the active/current page's link. Therefore it is very easy to edit the css and set the navigation link to a different style for the current page.
It seems that this is not set up for any of the information pages that are created.
I have identified the code that does this for the categories within controller/module/category.php
Code: Select all
if ($this->category_id == $result['category_id']) {
$output .= '<a href="' . $this->model_tool_seo_url->rewrite($this->url->http('product/category&path=' . $new_path)) . '"><b>' . $result['name'] . '</b></a>';
} else {
$output .= '<a href="' . $this->model_tool_seo_url->rewrite($this->url->http('product/category&path=' . $new_path)) . '">' . $result['name'] . '</a>';
}
Does anyone know how to edit the information navigation links so the active page link is different from the rest?
Any help would be much appreciated.
Iain.