sanaullahkhan81 Posted December 12, 2013 Share Posted December 12, 2013 (edited) Hi I am using leo converse theme my menu drop down is not align accordingly. http://www.e-cigarettessmoke.co.uk/index.php Edited December 14, 2013 by sanaullahkhan81 (see edit history) Link to comment Share on other sites More sharing options...
bart777 Posted December 12, 2013 Share Posted December 12, 2013 hi, this is a bug, this theme defines categories as sub-categories i did it like that: change /modules/blockleotopmenu/blockleotopmenu.php lines 612 - 623 $this->_menu .= '<li class="'.$selected; $add_data = ''; if($category->level_depth==1){ $this->_menu .= 'dropdown">'; $add_data = ' class="dropdown-toggle" data-toggle="dropdown"'; }elseif($category->level_depth==2){ $this->_menu .= 'dropdown">'; //$add_data = ' class="dropdown-toggle" data-toggle="dropdown"'; }elseif($category->level_depth>2&&count($children)){ $this->_menu .= 'dropdown-submenu">'; }else{ $this->_menu .= '">'; } 1 Link to comment Share on other sites More sharing options...
vekia Posted December 12, 2013 Share Posted December 12, 2013 it's related to css styles, some time ago i changed css styles in: http://www.kolorowa-szafa.pl/ the same theme, the same problem 1 Link to comment Share on other sites More sharing options...
ibndawood Posted December 12, 2013 Share Posted December 12, 2013 Replace dropdown-submenu with dropdown in blockleotopmenu.php and that will fix the issue Link to comment Share on other sites More sharing options...
Tyian Posted December 12, 2013 Share Posted December 12, 2013 (edited) hi, this is a bug, this theme defines categories as sub-categories i did it like that: change /modules/blockleotopmenu/blockleotopmenu.php lines 612 - 623 $this->_menu .= '<li class="'.$selected; $add_data = ''; if($category->level_depth==1){ $this->_menu .= 'dropdown">'; $add_data = ' class="dropdown-toggle" data-toggle="dropdown"'; }elseif($category->level_depth==2){ $this->_menu .= 'dropdown">'; //$add_data = ' class="dropdown-toggle" data-toggle="dropdown"'; }elseif($category->level_depth>2&&count($children)){ $this->_menu .= 'dropdown-submenu">'; }else{ $this->_menu .= '">'; } Replace dropdown-submenu with dropdown in blockleotopmenu.php and that will fix the issue This solved my problem, its from the theme in fact! Thank you! Edited December 12, 2013 by Tyian (see edit history) Link to comment Share on other sites More sharing options...
Donut Posted January 26, 2014 Share Posted January 26, 2014 je ne comprends pas comment réussir le menu horizontal comme sur le site http://www.kolorowa-szafa.pl/ j'ai besoin de faire aussi 3 onglets avec des sous-menu mais impossible. Help me plz, thx Link to comment Share on other sites More sharing options...
Duetec Diseño Web Posted February 3, 2014 Share Posted February 3, 2014 Hi, im from argentina, im using the same theme leo converse and i have the same problem. I follow your steps but is not working. This is my site http://sweettemptations.com.ar/ If you people can help ill be grateful. Link to comment Share on other sites More sharing options...
Tyian Posted February 4, 2014 Share Posted February 4, 2014 (edited) je ne comprends pas comment réussir le menu horizontal comme sur le site http://www.kolorowa-szafa.pl/ j'ai besoin de faire aussi 3 onglets avec des sous-menu mais impossible. Help me plz, thx Hi, im from argentina, im using the same theme leo converse and i have the same problem. I follow your steps but is not working. This is my site http://sweettemptations.com.ar/ If you people can help ill be grateful. Try this in /modules/blockleotopmenu/blockleotopmenu.php if (!empty($is_intersected)) { $this->_menu .= '<li class="'.$selected; $add_data = ''; if($category->level_depth==1){ $this->_menu .= 'dropdown">'; $add_data = ' class="dropdown-toggle" data-toggle="dropdown"'; }elseif($category->level_depth>1&&count($children)){ $this->_menu .= 'dropdown">'; }else{ $this->_menu .= '">'; } $this->_menu .= '<a'.$add_data.' href="'.$category_link.'">'.$category->name; if (count($children)) { $this->_menu .= '<b class="caret"></b>'; } $this->_menu .='</a>'; if (count($children)) { $this->_menu .= '<ul class="dropdown-menu">'; foreach ($children as $child) $this->getCategory((int)$child['id_category'], (int)$id_lang, (int)$child['id_shop']); $this->_menu .= '</ul>'; } $this->_menu .= '</li>'; } The important line is this: if (count($children)) { $this->_menu .= '<ul class="dropdown-menu">'; <--------------------------- I hope it helped. Edited February 4, 2014 by Tyian (see edit history) Link to comment Share on other sites More sharing options...
natidito Posted March 15, 2014 Share Posted March 15, 2014 (edited) Hola, sigo teniendo este problema con el dropmenu que se muestra no alineado, me podrian ayudar a solucionarlo? muchas gracias! Asi se ve http://www.layoutsg.com.ar/index.php Edited March 15, 2014 by natidito (see edit history) Link to comment Share on other sites More sharing options...
natidito Posted March 15, 2014 Share Posted March 15, 2014 it's related to css styles, some time ago i changed css styles in: http://www.kolorowa-szafa.pl/ the same theme, the same problem Hello, I still have the same problem with dropmenu not aligned, could yo help me? Which part of css should I change? My url is http://www.layoutsg.com.ar/index.php Link to comment Share on other sites More sharing options...
vekia Posted March 15, 2014 Share Posted March 15, 2014 change contents of file: /themes/leoconv/css/bootstrap.css with this: http://pastebin.com/V13jvEkX effect: Link to comment Share on other sites More sharing options...
natidito Posted March 15, 2014 Share Posted March 15, 2014 change contents of file: /themes/leoconv/css/bootstrap.css with this: http://pastebin.com/V13jvEkX effect: It works! you are the best! Thank you from Argentina! Link to comment Share on other sites More sharing options...
natidito Posted March 15, 2014 Share Posted March 15, 2014 change contents of file: /themes/leoconv/css/bootstrap.css with this: http://pastebin.com/V13jvEkX effect: It works! you are the best! Thank you from Argentina! Link to comment Share on other sites More sharing options...
vekia Posted March 15, 2014 Share Posted March 15, 2014 It works! you are the best! Thank you from Argentina! you're welcome now we have got universal solution for everyone with this theme Link to comment Share on other sites More sharing options...
Recommended Posts