4GLte.eu Posted June 26, 2016 Share Posted June 26, 2016 Where can I bold a font of the root of the category on the menu list? Link to comment Share on other sites More sharing options...
shokinro Posted June 26, 2016 Share Posted June 26, 2016 Where is your menu list? it is better to give more details about your request. Link to comment Share on other sites More sharing options...
4GLte.eu Posted June 26, 2016 Author Share Posted June 26, 2016 Hi I am talking about the "Top horizontal menu" Link to comment Share on other sites More sharing options...
shokinro Posted June 26, 2016 Share Posted June 26, 2016 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 More sharing options...
Recommended Posts