Zen Cart Logo
Forums / All Other Contributions/Addons / CSS Dropdown menu for the header- With Categories!

CSS Dropdown menu for the header- With Categories!

Views: 615,625

Results 801 to 820 of 2,344
8 Feb 2008, 6:56 PM
#801
chufty_bill avatar

chufty_bill

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
115
Plugin Contributions:
0

CSS Dropdown menu for the header- With Categories!

Hi.

Just a longshot really.
I have installed a very similar CSS dropdown from the download section by toolatesmart.

As it is pretty much identical in operation though not coding, I was hoping that someone could tell me how to remove the drop down menu from the index page ONLY.

Im sure it will be a flag or something on a header or tpl file, but not experienced enough to know where.

Any advice please?

Thanks in advance
Chris

8 Feb 2008, 10:04 PM
#802
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

chufty bill:

Hi.
I was hoping that someone could tell me how to remove the drop down menu from the index page ONLY.

To get it off just the index page (you mean just the main page right?), you would create the file index_home.css and put a rule to hide the menu: #dropMenuWrapper{display:none}

The index_home.css is the file that controls styles for just your home page.

8 Feb 2008, 11:10 PM
#803
chufty_bill avatar

chufty_bill

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
115
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Many thanks, I will give it a shot.
Thanks for your time. :)

Thats really what I wanted to hear !!!

Thank you Rain....
FREEDOM !

Regards Chris

11 Feb 2008, 8:28 PM
#804
mrfixit avatar

mrfixit

New Zenner

Join Date:
Feb 2008
Location:
UK
Posts:
4
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Hi jettrue, im getting there with the site, was just wondering if you know how to display an ez-page title?

Have a look at the following line from the drop_menu.php


<li><a href="<?php echo zen_ez_pages_link(18); ?>"><?php echo SHIRT; ?></a></li>

I have tried to type "Sports Shirt" however when update the menu
i get a blank shop, i am guessing it is somthing to do with title of the ez-page (page 18) how can i get the title of the page to display in the dropdown menu button.

( I know it can be done as the ez-page header can display them)

Iv tried HEADER_SPORTS_SHIRT but this just displays all the txt

Cheers

Mr(unable to)fixit

12 Feb 2008, 2:53 AM
#805
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

mrfixit:

Hi jettrue, im getting there with the site, was just wondering if you know how to display an ez-page title?

Have a look at the following line from the drop_menu.php


<li><a href="<?php echo zen_ez_pages_link(18); ?>"><?php echo SHIRT; ?></a></li>

I have tried to type "Sports Shirt" however when update the menu
i get a blank shop, i am guessing it is somthing to do with title of the ez-page (page 18) how can i get the title of the page to display in the dropdown menu button.

( I know it can be done as the ez-page header can display them)

Iv tried HEADER_SPORTS_SHIRT but this just displays all the txt

Cheers

Mr(unable to)fixit

You're bang your head on the computer when you see this... (I've gotten stuck in the PHP rut myself), but just simply do it ike a normal link:

<li><a href="index.php?main_page=page&id=18&chapter=0">Sports Shirt</a></li>

I don't know that I've ever seen this:

<?php echo zen_ez_pages_link(18); ?>

.... did you just make that up? Or is that a real zen cart thing? :blush:

12 Feb 2008, 7:47 AM
#806
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Hi Jade,
I have done links exactly the way you suggested many times and they work fine.
But there is a $zen_href_link() function. Could he have used that?

14 Feb 2008, 6:13 AM
#807
msgok avatar

msgok

New Zenner

Join Date:
May 2006
Posts:
41
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

I just installed this wonderful add-on onto my test store. Installing it was the easy part, but it seems I have ran into a snag. Take a look at this:

http://www.mistys-specialty-gifts.biz/test

I have moved my (dark grey) main nav bar down below my logo. Since I installed this add-on, i now have an unwanted white space just below it, dividing the main part of the page. How do I get ride of that? How do I make my grey menu bar as the drop down menu? What am I doing wrong? Or not doing?

Michelle

14 Feb 2008, 11:26 PM
#808
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

MSGOK:

I just installed this wonderful add-on onto my test store. Installing it was the easy part, but it seems I have ran into a snag. Take a look at this:

http://www.mistys-specialty-gifts.biz/test

I have moved my (dark grey) main nav bar down below my logo. Since I installed this add-on, i now have an unwanted white space just below it, dividing the main part of the page. How do I get ride of that? How do I make my grey menu bar as the drop down menu? What am I doing wrong? Or not doing?

Michelle
The drop down menu is there in that big space, but its white text on a white background, so you can't see it, and either way, it looks like you installed the "Paul's Version" from the download section, not my version. My version has all categories in one drop down menu, whereas Paul's version has each category as its own drop down.

15 Feb 2008, 12:05 AM
#809
msgok avatar

msgok

New Zenner

Join Date:
May 2006
Posts:
41
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

jettrue:

The drop down menu is there in that big space, but its white text on a white background, so you can't see it, and either way, it looks like you installed the "Paul's Version" from the download section, not my version. My version has all categories in one drop down menu, whereas Paul's version has each category as its own drop down.

Thanks. I just installed your version of the dropdown menu and I'm liking it a whole lot better.

15 Feb 2008, 7:32 AM
#810
tbsm avatar

tbsm

New Zenner

Join Date:
Sep 2007
Posts:
65
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Hi Jade,

I have just installed your CCS Dropdown with the cherry zen template and am having a few teething problems.

The submenu's drop down and thats all a-ok, its just that now the site is no longer "fluid" and the menu bar is stretced accross the whole screen. Is it posible to keep the site fluid with the dropdown?

I tried searching this thread and forum and had no luck trying to find an answer, so if you could give me some help it would be mostly appreciated!!

Regards
Liam.

15 Feb 2008, 1:13 PM
#811
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

TBSM:

Hi Jade,

I have just installed your CCS Dropdown with the cherry zen template and am having a few teething problems.

The submenu's drop down and thats all a-ok, its just that now the site is no longer "fluid" and the menu bar is stretced accross the whole screen. Is it posible to keep the site fluid with the dropdown?

I tried searching this thread and forum and had no luck trying to find an answer, so if you could give me some help it would be mostly appreciated!!

Regards
Liam.

Could I see a link please?

16 Feb 2008, 7:08 AM
#812
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Jade,
I just ran into the problem of the empty submenus in IE7. Back in post #492 you said

jettrue:

This is a known issue, and I haven't been able to find a resolution to it. So you have to decide whether or not you can live with the issue. Sorry!
Any further resolution of the problem?

Second question: I tried to add a regular level2 link between the heading of the categories and the categories listing from the ul_generator.

<li class="submenu"><a href="<?php echo DIR_WS_CATALOG. '#'; ?>"><?php echo HEADER_TITLE_CATEGORIES; ?></a> <ul class="level2"> <li class="submenu"><a href="<?php echo DIR_WS_CATALOG. 'index.php?main_page=page&'.'id=30&chapter=0'; ?>">Products</a></li> </ul> <?php // load the UL-generator class and produce the menu list dynamically from there require_once (DIR_WS_CLASSES . 'categories_ul_generator.php'); $zen_CategoriesUL = new zen_categories_ul_generator; $menulist = $zen_CategoriesUL->buildTree(true); $menulist = str_replace('"level4"','"level5"',$menulist); $menulist = str_replace('"level3"','"level4"',$menulist); $menulist = str_replace('"level2"','"level3"',$menulist); $menulist = str_replace('"level1"','"level2"',$menulist); $menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist); $menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist); echo $menulist; ?></li>

It wouldn't work. Any ideas?

16 Feb 2008, 2:55 PM
#813
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

mauryg:

Jade,
I just ran into the problem of the empty submenus in IE7. Back in post #492 you said

Any further resolution of the problem?

Second question: I tried to add a regular level2 link between the heading of the categories and the categories listing from the ul_generator.

It wouldn't work. Any ideas?

Yeah, that won't work.....

You could try this, but I don't know if it will work either. open up includes/classes_categories_ul_generator.php and change this:

$parent_group_start_string = '<ul%s>',

to this:

$parent_group_start_string = '<ul%s> <li class="submenu"><a href="<?php echo DIR_WS_CATALOG. 'index.php?main_page=page&'.'id=30&chapter =0'; ?>">Products</a></li>',
17 Feb 2008, 6:25 AM
#814
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Nope, that didn't work. It killed the page right after the level1 header button.

17 Feb 2008, 7:30 AM
#815
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

mauryg:

Nope, that didn't work. It killed the page right after the level1 header button.

YEAH, this will be difficult to do. Can you just create a "faux" category with the information you want to display as the first "category"?

17 Feb 2008, 9:41 AM
#816
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

If I remember correctly, this mod creates a tree (array) before turning it to display string. Wouldnt it be easier to just append the faux category branches into the tree instead of the output string?

17 Feb 2008, 10:05 AM
#817
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Jade,
I thought about that. Wondered if it could mess up some other things.
I'll give it a try and let you know what I see.
I sent you an email about my site. Are you williing to do a critique?

18 Feb 2008, 2:52 PM
#818
epsports avatar

epsports

New Zenner

Join Date:
Jul 2007
Posts:
21
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Jade,
This is a fantastic download, and generally prefer it to Paul's version due to how extensive the menu is. Is there any way at all though, in a similar way to Paul's, to have the top level categories as individual drop-downs, rather than under "categories". I only have 3 main categories of products, and would like to be able to have them as their own drop-downs, alongside the home, information etc etc in the horizontal menu.
I am not great with PHP so changing the code myself it proving a little difficult!
Best regards, and thanks in advance,
Chris

18 Feb 2008, 5:12 PM
#819
mrogowski avatar

mrogowski

New Zenner

Join Date:
Jan 2008
Posts:
11
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Hi everyone,

Firstly, I'm really loving this menu system! It makes things so much cleaner. :laugh:

Unfortunately, I seem to be running into the same issue as the person in post #25 had - sort of. The glitch I have is where the menus are dropping behind a couple of flash images that are located near the top of my page.

Post #36 states to add z-index: 5; to the stylesheet.css file under the 'headerwrapper' section (I assume this is what he did). Tried that with no success.

If there is a workaround for this I'd really appreciate it. :smile:

Best regards,
Mark

18 Feb 2008, 9:13 PM
#820
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

mrogowski:

Hi everyone,

Firstly, I'm really loving this menu system! It makes things so much cleaner. :laugh:

Unfortunately, I seem to be running into the same issue as the person in post #25 had - sort of. The glitch I have is where the menus are dropping behind a couple of flash images that are located near the top of my page.

Post #36 states to add z-index: 5; to the stylesheet.css file under the 'headerwrapper' section (I assume this is what he did). Tried that with no success.

If there is a workaround for this I'd really appreciate it. :smile:

Best regards,
Mark

Could I see a link please?