Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
jettrue
Why don't you just add a link:
<li><a href="link_here">Link Name Here</a></li>
What are you referring to Jettrue?
Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
shocker
What are you referring to Jettrue?
When someone creates a page, and wants to add it to the drop down header, they don't have to go through all of the work in defining the link text in language files and creating a complicated zen cart link, they can just add their link normally to includes/template/YOUR_TEMPLATE/common/tpl_drop_menu.php.
<li><a href="link_here">Link Name Here</a></li>
Re: CSS Dropdown menu for your header- With Categories!
Hey All,
Im trying to get my menu to fit the width of my webpage but i cant seem to be able to do it....
I changed this:
div#dropMenu {
width:100%;
But it still doesnt fit the width there is small gap on the left hand side and in firefox there is a few px gap but not in ie.
Can anyone assist?
Re: CSS Dropdown menu for your header- With Categories!
Oh the few px gap is at the bottom of the menu...
Link: www.truwater.com.au
Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
jettrue
Why don't you just add a link:
<li><a href="link_here">Link Name Here</a></li>
If I'd known how to do that then I'd have done it, but it's working now anyway thanks :-) Great mod by the way!! Thanks for all your time and work.
Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
jettrue
When someone creates a page, and wants to add it to the drop down header, they don't have to go through all of the work in defining the link text in language files and creating a complicated zen cart link, they can just add their link normally to includes/template/YOUR_TEMPLATE/common/tpl_drop_menu.php.
<li><a href="link_here">Link Name Here</a></li>
If I'd know that I'd have done it like that but however, it's done now....
I got the idea of adding language files and define pages through one of your earlier posts in this thread when you yourself mentioned using the About Us Page Mod on page 127 of this thread
It's an absolutely huge thread this btw, really hard to find what you're looking for :-)
I think it'd be a worthwhile addition to the readme.txt that ships with the download if you add at the bottom, "To add your own links to the drop down menus, edit includes/template/YOUR_TEMPLATE/common/tpl_drop_menu.php..........
<li><a href="link_here">Link Name Here</a></li>"
Just a suggestion :-)
Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
gee38l
Hey All,
Im trying to get my menu to fit the width of my webpage but i cant seem to be able to do it....
I changed this:
div#dropMenu {
width:100%;
But it still doesnt fit the width there is small gap on the left hand side and in firefox there is a few px gap but not in ie.
Can anyone assist?
If you open your stylesheet_header_menu.css and look for the #div#dropMenu li {
You'll see two entries like width:16.667%; width:16.649%; these control the width of each top level button.
Further down you'll see these lines:
div#dropMenu>ul a {width: auto;z-index:1000;}
and
div#dropMenu ul.level7 li.submenu:hover ul.level8 {position: absolute; width: 14.3em;display:block;z-index:1000;}
and
div#dropMenu ul.level8{top: 0; left: 16.7em; background:#4f4f4f}
you should play with editing the 16.7 in these lines.... those are the values I use for the width of my own drop down panels.
If you play around with it you'll get it right....
Re: CSS Dropdown menu for your header- With Categories!
Great contribution jettrue. Well done and thank you.
Can I ask a silly question?
Can this be used as vertical menu like in 'http://www.musicoutletusa.com/' ?
And what is is called so I can download it
Thank you
Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
jettrue
When someone creates a page, and wants to add it to the drop down header, they don't have to go through all of the work in defining the link text in language files and creating a complicated zen cart link, they can just add their link normally to includes/template/YOUR_TEMPLATE/common/tpl_drop_menu.php.
<li><a href="link_here">Link Name Here</a></li>
This was my first approach until I reread the mods instructions.
So are you saying that the documented method doesn't worK?
Thanks for your clarification.
Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
shocker
This was my first approach until I reread the mods instructions.
So are you saying that the documented method doesn't worK?
Thanks for your clarification.
Exactly, the instructions that ship with the mod contradict what you're saying. It'd be useful if the readme.txt mentioned the simple approach instead of the long winded method :-)