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

 

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

  • 1 month later...
  • 2 weeks later...

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

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