Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / dropdown css header menu on internal pages only

dropdown css header menu on internal pages only

Views: 734

Results 1 to 4 of 4
17 Jun 2011, 12:24
#1
raunharman avatar

raunharman

Zen Follower

Join Date:
Dec 2005
Posts:
165
Plugin Contributions:
0

dropdown css header menu on internal pages only

I want to show the CSS drop down menu on internal pages only, not on the home page.
When someone selects a Particular category, only then the menu should be visible.

Ho can I do it.

Main thing is to hide the menu on the home page.

19 Jun 2011, 07:22
#2
niccol avatar

niccol

Totally Zenned

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

Re: dropdown css header menu on internal pages only

You can do it in the php by adding an if statement where appropriate. WIthout a bit more information about your site then hard to be more detailed than that.

Or:

You can just stop the menu displaying on the home page with css. The stylesheet rule would look something like:

#indexDefaultHeading #dropdownmenu{
display:none;
}

#dropdownmenu is the ID of the container for the dropdown menu. WIthout looking at the site I can't tell you what that would be. But you will need to find it and replace #dropdownmenu with it in the rule.

}

20 Jun 2011, 07:18
#3
raunharman avatar

raunharman

Zen Follower

Join Date:
Dec 2005
Posts:
165
Plugin Contributions:
0

Re: dropdown css header menu on internal pages only

Thanks for this information.
I tried this, but it does not work.

The website is at http://204.93.193.150/~bhavikac/

The id of the drop down menu is #dropMenuWrapper

so, I added

#indexDefaultHeading #dropMenuWrapper{
display:none;
}
Should the main id be #indexDefaultHeading or something else.

Any help would be greatly appreciated.

Thanks

20 Jun 2011, 07:22
#4
raunharman avatar

raunharman

Zen Follower

Join Date:
Dec 2005
Posts:
165
Plugin Contributions:
0

Re: dropdown css header menu on internal pages only

I am sorry, it just worked.

I replaced the #indexDefaultHeading with #indexHomeBody

Thanks.

Now, my next idea is that on the category pages, the dropdown menu shows the sub categories for the specific category page only. (it should not show the categories listing, but begin with sub categories on level 1)

Hope you could help me here too.

Thanks again.