Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Help with a drop down menu mystery

Help with a drop down menu mystery

Views: 1,159

Results 1 to 11 of 11
7 Mar 2012, 9:50 PM
#1
jolly_roger avatar

jolly_roger

New Zenner

Join Date:
Feb 2012
Location:
Coastal Carolina
Posts:
6
Plugin Contributions:
0

Help with a drop down menu mystery

I am building our first ZC. It is a slightly customized ZC theme. I can not find where to change the code to enable my drop down menus to fucntion as the first menu does at https://www.scubooty.com . The "accessories" drop down appears and stays there while you select the subcategory. The menus for "apparel" and "dive systems" disappears before you can click on a subcategory. I am on the right track looking at the source code, but cant find the correct file to edit or to try to play with it. If anyone can tell us what goes where, or what we should type in what file, we'd greatly appreciate the input. THNX:blink:

7 Mar 2012, 10:53 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Help with a drop down menu mystery

Well, this is non-standard zen cart stuff so...

however, the problem you have is that the menu items are different heights. Which means that in the other ones that are less high the cursor comes out of the menu item before it goes into the sub-menu so the hover is broken.

The best solution is to find why they are different heights when they obviously should be the same height but I can not be bothered to go through a template that I do not know and work that one out so here is a hacky fix. Add this to your css:

.submenu{
height:45px;
}
7 Mar 2012, 11:34 PM
#3
jolly_roger avatar

jolly_roger

New Zenner

Join Date:
Feb 2012
Location:
Coastal Carolina
Posts:
6
Plugin Contributions:
0

Re: Help with a drop down menu mystery

Thanks. I was thinking that way too. It gives us a duplicate menu arrow in the sub menu when we add that line. We left it that way with your changes to work further. WIll keep searching. Thank you.

8 Mar 2012, 1:25 PM
#4
jolly_roger avatar

jolly_roger

New Zenner

Join Date:
Feb 2012
Location:
Coastal Carolina
Posts:
6
Plugin Contributions:
0

Re: Help with a drop down menu mystery

We're still getting this funky shadow arrow that is off kilter in our three drop down menus. https://www.scubooty.com Any ideas out there? We appreciate the input. :lookaroun

8 Mar 2012, 2:00 PM
#5
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Help with a drop down menu mystery

I am not sure that I understand what you are saying now :blink:

Attached is a screenshot with that css rule applied.

If you are seeing something else then you have some browser issues as well as code issues.

If you are seeing that then which bit of it do you want to change?

As it is a TM template you may find that not many people want to get to far into it. It tends to make people run away weeping.

8 Mar 2012, 2:37 PM
#6
jolly_roger avatar

jolly_roger

New Zenner

Join Date:
Feb 2012
Location:
Coastal Carolina
Posts:
6
Plugin Contributions:
0

Re: Help with a drop down menu mystery

If you mouse over the subcategories, a gray arrow is thrown when the yellow highlight arrow lights up. I made the suggested changes to the css in stylesheet_categories_menu.css. I know not many people want to help on themes, I am just throwing it out there. It is the only issues we really have. once that is corrected we can open up and start loading merchandise files. If you can direct us to someone that works thems let us know. Thanks again.

8 Mar 2012, 2:47 PM
#7
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Help with a drop down menu mystery

stylesheet_categories_menu.css

#nav-cat ul.level2 li a{
	padding:0 0 0 24px!important;
	background:url(../images/marker1.png) no-repeat left -23px;
}
#nav-cat ul.level2 li a:hover{
	background:url(../images/marker1.png) no-repeat left 7px!important;
	color:#fff!important;

set them both to background:none;

It is not so much templates that are the problem as TM templates as they tend to butcher the Zen code to such a great extent that it makes finding stuff really hard. If you search the forum for Template Monster I am sure that you'll see what I mean.

8 Mar 2012, 3:09 PM
#8
jolly_roger avatar

jolly_roger

New Zenner

Join Date:
Feb 2012
Location:
Coastal Carolina
Posts:
6
Plugin Contributions:
0

Re: Help with a drop down menu mystery

Thank You ! Thank You ! Thank You !

You pointed out the lines we needed to edit. We tried 3 different ways and decided to leave 87 in and now a yellow indicator shows when you mouse over correctly. Gray arrows are gone. Again... Many Thanks. I fix broken bones, not websites. :yes:

8 Mar 2012, 3:12 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Help with a drop down menu mystery

The partial gray arrow is due to the height of the item being increased. Both arrows are on one image (marker1.png), which is repositioned (slid down) on hover. The taller space doesn't let the gray arrow get fully out of the way. You could change the image to make more space between the arrows, and increase the shift on hover (currently from -23px to 7px).

8 Mar 2012, 3:12 PM
#10
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Help with a drop down menu mystery

You are more than welcome :cool:

8 Mar 2012, 3:32 PM
#11
jolly_roger avatar

jolly_roger

New Zenner

Join Date:
Feb 2012
Location:
Coastal Carolina
Posts:
6
Plugin Contributions:
0

Re: Help with a drop down menu mystery

Thanks All! We did a little bit of both and reversed this and that and added 7's here and subtracted 23's there and put "none" in some places and lo and behold... Perfect. Case closed. Much Thanks.:D