Jump to content

Where can I bold <b> main categories from the list?


4GLte.eu

Recommended Posts

you may have to modify related line in following file /modules/blocktopmenu/blocktopmenu.php

 

 

    protected function generateCategoriesMenu($categories, $is_children = 0)
    {
        $html = '';


        foreach ($categories as $key => $category) {
            if ($category['level_depth'] > 1) {
                $cat = new Category($category['id_category']);
                $link = Tools::HtmlEntitiesUTF8($cat->getLink());
            } else {
                $link = $this->context->link->getPageLink('index');
            }


            /* Whenever a category is not active we shouldnt display it to customer */
            if ((bool)$category['active'] === false) {
                continue;
            }


            $html .= '<li'.(($this->page_name == 'category'
                && (int)Tools::getValue('id_category') == (int)$category['id_category']) ? ' class="sfHoverForce"' : '').'>';
            $html .= '<a href="'.$link.'" title="'.$category['name'].'">'.$category['name'].'</a>';
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...