Jump to content

[SOLVED] Top Horizontal Menu Problems


Recommended Posts

Hi,

 

Im having some problems with my Top horizontal menu bar,

 

How I remove this itens from my Home buton? I want the Home buton only to redirect to the main site.

 

post-737011-0-94991900-1386688689_thumb.png

 

I want to remove the "CD, DVD, ..." from there.

 

 

The "CD" tab it not working right

 

 

post-737011-0-73457200-1386689292_thumb.png

 

 

post-737011-0-78398800-1386689177_thumb.png

 

 

How I fix it?

 

 

Can I had something other than the Home for the main parent?

  Like that:

 

  Home

          - CD

          - DVD

 

I want something like that:

 

  Home

           -CD

           -DVD

  Other

           -Pen

           -Cases

 

post-737011-0-85797000-1386688884_thumb.png

 

 

Thank you.

 

 

 

EDIT:

 

SOLVED

 

 

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

 

 

It was in fact a bug from the theme.

 

Thank you very much Nemo1 and Stottycabanas for the trouble and all the help!  ;)

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

Hi Tyian, welcome to the forums.

Are you trying to achieve something like this?:

attachicon.gifTHM.jpg

If not, can you clarify - perhaps upload some pictures of what you want to achieve.

Cheers, Dave

 

Hi Stotty,

 

Yes, that is exactly what I want to achieve.

 

 

You also know why my "CD" tab is messed up? Like I show it on the pics?

Ex: The little black arrow and when I hover the tab the option cover the others tab in the menu, instead of going under it.

 

How is rigth now:

post-737011-0-92851200-1386753639_thumb.png

 

How I would like to work:

post-737011-0-92513600-1386753665_thumb.png

 

 

But your example is exaxtly what I want to achieve. The home like yours and the "Media" tab, etc, like yours.

 

Thank you!

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

Can you also link your website?

To remove the first dropdown, I'd suggest replacing the default Home link (category) with a custom link with the same name. You can do it from the module's configuration page.

As for the other thing, waiting for the link!

Link to comment
Share on other sites

Can you also link your website?

To remove the first dropdown, I'd suggest replacing the default Home link (category) with a custom link with the same name. You can do it from the module's configuration page.

As for the other thing, waiting for the link!

 

Sure.

 

The Home I did like you said and its nice :)

 

Thank you.

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

CHange bootstrap.css, at line 4945, and add a top offset. It should be around 40px I guess :)

 

Thank you, that kind worked.

 

The problem is that the option are under the other tab and not the right tab.

 

post-737011-0-93557800-1386760920_thumb.png

 

Can I move it a little so she show the option under the right tab.

 

About the little black arrow? Do you know why is showing like that?

 

 

Thank you for the help ;)!

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

Yes, just change the left offset :)

As for the arrow, it's .caret at about line 4806. Remove the background

 

 

Thank you for your time! I'm just starting to mess around this, so this tips will help me a lot.

 

BTW on last thing If I want to have a News system in my site, here is a module that do that or I will to add manually the News with a custom html? 

 

 

EDIT: That breaks the menu I don't know how.

 

 post-737011-0-61315400-1386764880_thumb.png

 

Look all withe.

 

 

Thank you very much! :D

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

You should ask the theme developer, as it's because you are hovering on another list item.

As for the news,what about the cms block? It's not perfect but can serve the purpose. 

 

I will try that.

 

Thank you for all the help ;)

Link to comment
Share on other sites

Tyian, are you OK with setting up the category structure?

You can set up a new product category called e.g. Media whose parent is the Home category. Then you can amend the existing categories CD, DVD & Bluray so that their parent category is Media. Then add new categories Pens and Cases whose parent category is Accessories.

You can then configure the Top horizontal menu module. I see that you already have the link to the home page as your first entry in the menu. :)  Remove the others, then from the list on the left, select and add the categories Media then Accessories.

Obviously you will need to translate these terms as required.

Boa tarde! Dave

Link to comment
Share on other sites

Tyian, are you OK with setting up the category structure?

You can set up a new product category called e.g. Media whose parent is the Home category. Then you can amend the existing categories CD, DVD & Bluray so that their parent category is Media. Then add new categories Pens and Cases whose parent category is Accessories.

You can then configure the Top horizontal menu module. I see that you already have the link to the home page as your first entry in the menu. :)  Remove the others, then from the list on the left, select and add the categories Media then Accessories.

Obviously you will need to translate these terms as required.

Boa tarde! Dave

 

Boa tarde!

 

Yes, I think my category structure is ok. The problem is that the sub menu option get mess up and I dont know why.

 

EX:

My structure:

post-737011-0-78787400-1386780180_thumb.png

 

The Top horizontal module:

post-737011-0-08205300-1386780183_thumb.png

 

post-737011-0-68909700-1386780183_thumb.png

 

The final result:

post-737011-0-40693700-1386780232_thumb.png

 

 

What Im going wrong? What is the problem? Why the sub menu get all mess up?

 

 

Thank you

 

És Português? :D

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

It seems okay to me, you just have to fix css...no? Am I missing something?

 

If I fix the css it makes it ok, it fix it. I still around the white hover thing.

 

What is strange is if I create a menu in the CMS tab, it work nicely.

 

post-737011-0-85079300-1386842227_thumb.png

 

Like you can see, the arrow is correctly and when I hover it not turn white. You can see it online on my site.

 

I wanted to archive the same result with the Products category.

 

Maybe it not possible and the problem is from the theme, I don't know. 

 

 

Thank you for the help mate ;)

 

 

EDIT:

 

SOLVED

 

 

 

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

}

 

 

It was in fact a bug from the theme.

 

Thank you very much Nemo1 and Stottycabanas for the trouble and all the help! ;)

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

×
×
  • Create New...