Jump to content

[SOLVED] editing topbar menu html?


Recommended Posts

Hi all,

 

$menu HTML you edit in blocktopmenu.php, function makeMenu(). And for example for categories you add code to

function getCategory,

 if (!empty($is_intersected))
 {
  $this->_menu .= '<li '.$selected.'>';
  $this->_menu .= '<a href="'.$category_link.'">'.$category->name.'</a>';
  if (count($children))
  {
$this->_menu .= '<ul>';
foreach ($children as $child)
 $this->getCategory((int)$child['id_category'], (int)$id_lang, (int)$child['id_shop']);
$this->_menu .= '</ul>';
  }
  $this->_menu .= '</li>';
 }

 

I tried to change blocktopmenu.php as shown above but nothing happened?

i want to add the <ul> menu in a html attributes <div> but there is a wrong because editing doesn't affect !

 

any help?

my link: http://www.ibnqym.com/home/

Edited by Skapamento (see edit history)
Link to comment
Share on other sites

for the first you must check force compilation setting in your store, you must turn it on if its off. Next thing is to locate correct .tpl file.

You should check your theme/your_theme/modules directory for override tpl files of this module, if file exists there, you should apply changes there

 

 

Great thanks Vekia,

It's solved and working now as good as i need. but if i turned force compilation off again or cache and refreshing my page all edited gone as nothing edited !

 

Thanks again :)

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...