Jump to content

[SLOVED]leo converse theme my menu drop down is not align accordingly.


Recommended Posts

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 .= '">';
            }
  • Like 1
Link to comment
Share on other sites

  On 12/12/2013 at 12:15 PM, bart777 said:

 

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 .= '">';
            }

 

 
  On 12/12/2013 at 1:19 PM, ibndawood said:

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 by Tyian (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  On 1/26/2014 at 10:28 AM, Donut said:

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

 

 

  On 2/3/2014 at 11:59 PM, Duetec Diseño Web said:

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 by Tyian (see edit history)
Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...