Forums / Setting Up Categories, Products, Attributes / Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

Views: 1,882

Results 1 to 14 of 14
29 Oct 2014, 1:56 AM
#1
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

All of the categories and subcategories for https://www.carnal-pleasures.com are listed in permanent expanded drop-down mode in the Categories sidebar...but the Anthologies category is getting too long, and likely to get longer. Is it possible to have JUST the Anthologies category NOT show its subcategories, but still have all the other categories and subcategories stay visible like they are now?

Many thanks for your assistance!

29 Oct 2014, 2:03 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

I'm not familiar with the plugin/code that generates your lists, but where it comes to providing the subcategory(ies) it should be possibly to do a test like (if category != x && category != y) then do the subcategory(ies) portion of the routine. Where x is the first category id to be omitted, and y is the second. The "code" provided is not properly formatted to implement but is more of a concept.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

29 Oct 2014, 2:48 AM
#3
gjh42 avatar

gjh42

Black Belt

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

Re: Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

Add to your stylesheet_chcategories_dressing.css ```
#chcategories .cat-top>#catGroup134_153 {display: none;}
#chcategories .cat-top:hover>#catGroup134_153 { display: block;}


I notice that you have both stylesheet_categories_dressing.css and stylesheet_chcategories_dressing.css; you should delete stylesheet_categories_dressing.css so it doesn't confuse your site with duplicate rules.
29 Oct 2014, 3:28 AM
#4
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

Perfect, GJH...thank you so very much!! I'm a php moron, though I've gotten better over the past 3 years...I really appreciate your help!

Now if I can just get the upgrade problem solved.......... sigh

4 Dec 2014, 5:55 AM
#5
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

Okay, how would I do the same thing...have one category not show its subcategories but leave the others expanded...using the CH Category add-on? It doesn't have a stylesheet_chcategories_dressing.css file, and I'm very hesitant to mess with either of the two files I did upload.

http://timelesserotica.com/bookstore/

Thanks!!!

4 Dec 2014, 3:14 PM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

Do you mean just the chcategories, without Categories Dressing? That does not have any more individual category control than the stock categories sidebox. To do what you want you need to install Categories Dressing - you don't need to use all of its styling abilities, only what you want.

4 Dec 2014, 4:58 PM
#7
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

Whoo hoo!!! I not only figured out what you meant, I figured out how to install it without a hitch (for a change...php hates me)...AND I figured out how to change the

#chcategories .cat-top>#catGroup134_153 {display: none;}
#chcategories .cat-top:hover>#catGroup134_153 { display: block;}

to the proper new category numbers...

#chcategories .cat-top>#catGroup65_72 {display: none;}
#chcategories .cat-top:hover>#catGroup65_72 { display: block;}

:clap: Trust me, for me, this is big! LOL

I figured out how to change the orange color...is there a way to move the indents back to the left more?

4 Dec 2014, 5:09 PM
#8
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

Never mind, when I changed the color to white, they moved all on their own. Weird. Now to change the little orange boxes in front of the subcats to white, and figure out how to change the hover color from pink to pale teal.

This is going to look so sharp when it's done! :D

4 Dec 2014, 5:34 PM
#9
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

Check it out, I am SOOOO proud of the way it looks! Thank you so much for your help!!!

http://timelesserotica.com/bookstore/

Say...is there a way to round the edges of the New button all the way around, and round just the right corners of the sidebar buttons? If it can't be done, I won't lose any sleep over it...but if it can, I think that would add a nice stylish touch to the layout.

4 Dec 2014, 7:22 PM
#10
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,857
Plugin Contributions:
18

Re: Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

Since you are in the process of upgrading, it might be a good idea to consider one of the responsive templates available in the plugins section.
http://quirktools.com/screenfly/ will let you look at your site in desktop, tablet, and mobile formats. In these times when almost everyone has a tablet or phone that can access the internet, it makes sense to try to get there during upgrade.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

4 Dec 2014, 8:10 PM
#11
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

dbltoe:

Since you are in the process of upgrading, it might be a good idea to consider one of the responsive templates available in the plugins section.
http://quirktools.com/screenfly/ will let you look at your site in desktop, tablet, and mobile formats. In these times when almost everyone has a tablet or phone that can access the internet, it makes sense to try to get there during upgrade.
dbltoe, thanks for the link! You're always teaching me new stuff ...

4 Dec 2014, 8:20 PM
#12
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,857
Plugin Contributions:
18

Re: Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

You are most welcome. I wish I had one tenth of your coding knowledge.:hug:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

4 Dec 2014, 8:39 PM
#13
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

I just noticed something odd when I mouseover the category I set to not be permanently expanded. The entire screen shifts slightly to the left until I stop doing the mouseover. What's causing that, and how can I fix it?

7 Dec 2014, 1:17 PM
#14
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Is It Possible To Do Permanent Drop-Down Lists For Only Some Categories?

Anyone?