RESOLVED: Menu Item Alias & Main Menu Submenus

More
13 years 6 months ago #19537 by scottshort
Hi Ivan,

I followed your instructions from previous post.
When I set Main Menu Module option "show submenu items" to yes; I can see all submenus from all menus all of the time.... I do not want this.


I added your code to template_css.css [is this correct file?] as you requested.


Result is no change from above: I can see all submenus from all first level menu items all the time.



Sorry for my confusion on last post. What I was trying to say is that "by default" what I meant was same as your HotStart settings like HotFurniture Demo [I installed hotstart]. On demo main menu, you see link "Virture Mart" without submenus. When you click on it, then you can see the submenus.

thanks again
Scott

Please Log in to join the conversation.

More
13 years 6 months ago #19544 by ivan.milic
Try this:

#column_left .menu > li > ul{
display:none;
}

#column_left .menu .active, #column_left .menu .active *{
display:block;
color: #B7A68F!important;
}

#column_left LI.active a{
color:#49BDDE !important;
}

maybe you will need to move it to bottom of that css file.

Please Log in to join the conversation.

More
13 years 6 months ago - 13 years 6 months ago #19576 by scottshort
Hi Ivan

Here are first and second lines of code you suggested together at bottom of template_css.css:



and here is just second line of code:



For both I have same result - if "show submenus" is set to yes, I now see all submenus all the time instead of only active menu link [clicked on] like on demo page.

Any other ideas?
thanks
scott

ps: Are we allowed to view admin side of demo site? I would like to change main menu type to "menu-item-alias" to see if the same problem occurs...
Last edit: 13 years 6 months ago by scottshort. Reason: added question

Please Log in to join the conversation.

More
13 years 6 months ago #19583 by ivan.milic
ok, when you click eStore you don't want to change color of child elements just eStore


#column_left .menu > li > ul{
display:none;
}

#column_left .menu .active, #column_left .menu .active *{
display:block;
}

#column_left .menu .active a{
color: #B7A68F!important;
}

#column_left LI.active a{
color:#49BDDE !important;
}


return alias

Please Log in to join the conversation.

More
13 years 6 months ago #19596 by scottshort
Hi Ivan,

I removed the first two lines of code you gave me and tried this third suggestion. It had no effect. I am supposed to be adding this code to template_css.css, right? Strange that all three sets of code had no affect.

Good news, I had an idea and it worked. Problem solved. Here is what I did:
  1. I set menu type for Main Menu link to "category listing" instead of "menu-item-alias"
  2. I left top menu setting as "menu-item-alias" and changed source from Homepage Left to Main Menu link
  3. I also set Homepage Left link to "menu-item-alias" and selected Main Menu link as source.
So instead of linking Main and Top menus to Homepage Left Menu, I reversed it so the Main Menu link is the source. And now Main Menu Submenus behave like the Hotstart Demo.

I didn't have experience with the menu-item-alias type until I started with the Hot Furniture Hotstart demo and since you used the Homepage Left Menu link as the source, I just continued upon that and used it as source for Main Menu as well. There must be some problem with Main Menu and Menu-item-alias type, so for now I will always use Main Menu as source for alias when I need this type.



Thanks again for all of your suggestions
Regards
Scott

Please Log in to join the conversation.

More
13 years 6 months ago #19603 by ivan.milic
my mistake I forgot >

#column_left .menu > li > ul{
display:none;
}

#column_left .menu .active, #column_left .menu .active *{
display:block;
}

#column_left .menu .active > a{
color: #B7A68F!important;
}

#column_left LI.active > a{
color:#49BDDE !important;
}

Please Log in to join the conversation.

Time to create page: 0.249 seconds
Powered by Kunena Forum