If this is your first visit, check our documentation. To post, register or login.

Categories Dressing

Started by gjh42 on 6 Jun 2007, 7:25 PM · Views: 532,942

Results 2,181 to 2,200 of 2,268
13 Feb 2013, 8:11 PM
#2181
busymom avatar

busymom

New Zenner

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

Post #2181 by busymom

Hi again, Glenn, I've got one more thing that's been kicking my ########! :blink: My last top category has no sub cats and has an image that resides above it. This category name is five words long and unlike the other top cats which are left justified, I want to center this category name in two lines (first two words on one line, last three words on second line) below the image. I know how to style it uniquely, but my problem is figuring out how to get it to look exactly like I want. Is there a way to give the category a different name than is the actual one in the database - a nickname of sorts? The next thing I was going to try is to rename the category in the database to be "word1 word2" only and then use the subtext option to add "word3 word4 word5" below it. This has wide ranging impacts, though, with things like the address bar and breadcrumbs, but more importantly, I'll still have to find a way to put "word3 word4 word5" back into the category name everywhere in the center area. Unfortunately, the spacing of my sidebox is such that I need it to be wide enough that the default formatting allows "word1 word2 word3" to fit on the first line. I've also considered coding a line break into the category name where I want the word break, but I haven't gotten to the point of seeing what that does to the database. I did try using major header and minor header in the image define, but even without any padding and margin settings in the stylesheet for the header formatting, I couldn't get rid of extra spacing above and below them because of the extra breaks in the html, and even so I couldn't figure out how to make that link to the category (realized there was probably a way to make the image the linkable "category" title, but didn't get into that option yet!)

Thanks, Karen

13 Feb 2013, 8:44 PM
#2182
gjh42 avatar

gjh42

Black Belt

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

Post #2182 by gjh42

Yes, you could have a linked heading that displays instead of the rest of the categories box for certain ez-pages, requiring only stylesheet work. It would take a bunch of hands-on fiddling to get it right, but not a horrendous job.

I would probably need to look at the site live to understand what is not working with the flyouts. Seeing your defines would also help. I suspect the flyouts may depend somehow on parents that are hidden, so cannot be hovered on to get the lower levels, or maybe have different identifiers than you would expect so your CSS is not catching them. Not sure until I see it in action...

Maybe the easiest way around your five-word category name display is to make an image of the text laid out exactly as you want, and use the standard feature to replace the text with that. It would have an alt/title tag of the actual name, so would still be SE/screenreader accessible.

13 Feb 2013, 11:10 PM
#2183
busymom avatar

busymom

New Zenner

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

Post #2183 by busymom

Hey Glenn, thanks for the VERY fast response time, you're the best! :hug:

gjh42:

Yes, you could have a linked heading that displays instead of the rest of the categories box for certain ez-pages, requiring only stylesheet work. It would take a bunch of hands-on fiddling to get it right, but not a horrendous job.
Does it make any difference whether I shut off the category display in CSS using the ZC built-in .category ID or the CD #chcategories class? Are you suggesting the linked heading be a CD defined heading or are you referring to using the facilities of ZC and shutting off the category (or chcategory in my case) sidebox for my selected EZpages? Just trying to make sure I understand what you meant..

I would probably need to look at the site live to understand what is not working with the flyouts. Seeing your defines would also help. I suspect the flyouts may depend somehow on parents that are hidden, so cannot be hovered on to get the lower levels, or maybe have different identifiers than you would expect so your CSS is not catching them. Not sure until I see it in action...
Sorry, Glenn, I'm a pretty long way from getting anything up on a server you can actually look at (I'm developing on xampp). I could send you the css/defines/relevant generated HTML if you want; otherwise, this will probably have to just wait until some future time.

Maybe the easiest way around your five-word category name display is to make an image of the text laid out exactly as you want, and use the standard feature to replace the text with that. It would have an alt/title tag of the actual name, so would still be SE/screenreader accessible.
That is another thing I wanted to try, as well as a variation of that for the center section issue where the image included the bottom three words and I just put the first two words into the database. To do what you are suggesting, I am already using the image and I would need to edit the image to include the formatted category title below it, but this is the only top cat which would be replaced by an image. Since I am using linked cats, how do I code the image itself to be the link and not have any of the category name show up... is it as simple as display: none in that category's css declaration or will that prevent the image from showing up as well? Sorry for the dumb question, obviously I could just try it and see what code it generates, :no: but thought you might have some practical experience trying to make this part work.

Thanks for your amazing ongoing support with this plugin! Karen

13 Feb 2013, 11:26 PM
#2184
gjh42 avatar

gjh42

Black Belt

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

Post #2184 by gjh42

For the image substitution, just make the image you want for the category name, give the file the correct name as described in the readme, and it will automatically appear in place of the text, linked exactly as the text was. The heading set by the define is separate and will not be affected by this.

Are you suggesting the linked heading be a CD defined heading Yes, make the heading you want for this purpose. You may need to put it on a catGroup leading item to get a unique identifier for it... I would have to look that up as I haven't handled those elements recently. In any case, you would add a generic rule to hide this heading for all pages, and in the per-page stylesheet you would put rules that display this heading and hide all the rest of the sidebox elements. You can't just hide the whole sidebox or the heading would disappear too. That's about as specific as I can get without seeing your installation.

14 Feb 2013, 5:22 AM
#2185
busymom avatar

busymom

New Zenner

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

Post #2185 by busymom

I ended up merging what was the header image with the word1-word5 text formatted the way I wanted into a single background sprite. This way the image as well as the text is linkable, I just changed some background stuff and the text color for the hover version. I'm going to have to find another way to push it down from the previous category because I did have it in as padding, but that screwed up the sprite positioning. Thanks for walking me through this!

8 May 2013, 7:28 PM
#2186
bubbadan avatar

bubbadan

New Zenner

Join Date:
Apr 2005
Location:
TN
Posts:
96
Plugin Contributions:
0

Post #2186 by bubbadan

OK this is driving me batty... er

I have managed to get the listing the way I want it -
Top Category
Subcategory
Top Category
Subcategory
Top Category
Subcategory
etc.

That part works perfect and is exactly what I want and need.

But no matter what I do or what I change I cannot get the Top Category font to change.
I have tried all the suggestions in the forums (Including the one by you Glen) and nothing works.

Here is the URL
https://www.rsessentials.com

I want the Top Category Font to be much larger and a maroon color - when hovered a dk green .
I want the sub-cats to be slightly bigger than it is now and the dk green - when hovered the maroon.

Should be simple I would think. Just a css change as everyone seems to suggest.

I really have tried everything and read the read-me of this plugin every word and have tried everything.
I have other plugin's but nothing I could see that would bother this one.

Can anyone help?

Thanks
Dan

Using version v1.5.7b

8 May 2013, 7:40 PM
#2187
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Post #2187 by haredo

edit the stylesheet_chcategories_dressing.css

You need to edit both of these below and add the font size to each one ...

#chcategories ul {font-size: 14px;}
#chcategories ul ul {font-size: 12px;}

For color of the font ...
Add this:
Notice I used red, you will have to look up the code for dark green.

#chcategories ul ul a {color: #FF0000;}

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.

8 May 2013, 11:56 PM
#2188
bubbadan avatar

bubbadan

New Zenner

Join Date:
Apr 2005
Location:
TN
Posts:
96
Plugin Contributions:
0

Post #2188 by bubbadan

THANK YOU!
I swear I DID THAT but it didn't work. Don't know what I did but I know enough about css to know that would work.
Hmmmmm. Maybe I just thought I did. But Thanks! It worked!

Using version v1.5.7b

9 May 2013, 12:03 AM
#2189
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Post #2189 by haredo

Yw, ty for posting back the solution worked for you ....

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.

24 May 2013, 4:26 PM
#2190
barbscott avatar

barbscott

New Zenner

Join Date:
May 2013
Location:
Bell, FL
Posts:
6
Plugin Contributions:
0

Post #2190 by barbscott

without this mod... how do you move categories into a parent category... sorry about writing it here but I can't figure out how to start a new thread.

28 May 2013, 3:08 PM
#2191
gjh42 avatar

gjh42

Black Belt

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

Post #2191 by gjh42

To start a new thread, click the Forum tab in the header, go to the appropriate subforum, and you will see a "Post New Thread" button.
http://www.zen-cart.com/forumdisplay.php?17-Setting-Up-Categories-Products-Attributes

But before you start a new thread, search that forum for other threads on the same topic - there are many already:)

5 Jun 2013, 11:07 PM
#2192
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Post #2192 by joyjoy

Hello Glenn,

Is there a way to have bullets in front of category names on only 3+ sub level categories?

Currently, I have categories and sub categories listed without bullets. I would like the ability for 3rd level categories and beyond to appear bulleted but I'm not sure if it's possible. Please let me know. Thank you!!

6 Jun 2013, 4:57 AM
#2193
gjh42 avatar

gjh42

Black Belt

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

Post #2193 by gjh42

Add a rule similar to the one that controls subcat bullets, but with another "li" in the selector:```
#categories li li li a.cat-not-selected-text, #categories li li li a.cat-selected-text, #categories li li a.cat-parent-text {/3rd level + subcategories/
list-style: disc inside;/comment out display and list-style to remove bullet/
}

Of course use whatever bullet or arrow style you want.
6 Jun 2013, 9:20 AM
#2194
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Post #2194 by joyjoy

gjh42:

Add a rule similar to the one that controls subcat bullets, but with another "li" in the selector:```
#categories li li li a.cat-not-selected-text, #categories li li li a.cat-selected-text, #categories li li a.cat-parent-text {/3rd level + subcategories/
list-style: disc inside;/comment out display and list-style to remove bullet/
}

> Of course use whatever bullet or arrow style you want.

Thank you SO much. It worked! Seemed like something I should've tried a bit harder to figure out.

One last question, is there  a way to hide the top category when the sub categories are displayed? Here's an example:

HEADER CATEGORY (SHOWN AT ALL TIMES)
TOP CATEGORY (SHOWN AT ALL TIMES)
SUB CATEGORY (HIDDEN UNLESS TOP CATEGORY IS SELECTED)

If there's a way to hide the upper levels it would be greatly appreciated. If it's complicated, don't bother, it's just for aesthetics. Thank you!
6 Jun 2013, 2:03 PM
#2195
gjh42 avatar

gjh42

Black Belt

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

Post #2195 by gjh42

is there a way to hide the top category when the sub categories are displayed? I'm afraid not. CSS can't alter the display of something based on what follows it, only on what precedes it.

It would be possible to write a new PHP case statement for the switch which determines what displays, but I would have to sit down and study it.

6 Jun 2013, 6:16 PM
#2196
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Post #2196 by joyjoy

gjh42:

I'm afraid not. CSS can't alter the display of something based on what follows it, only on what precedes it.

It would be possible to write a new PHP case statement for the switch which determines what displays, but I would have to sit down and study it.

Okie dokie. No problem, it's great anyway! Thank you!

30 Jun 2013, 8:53 AM
#2197
arc2 avatar

arc2

New Zenner

Join Date:
Jun 2013
Location:
NYC
Posts:
2
Plugin Contributions:
0

Post #2197 by arc2

gjh42:

I'm afraid not. CSS can't alter the display of something based on what follows it, only on what precedes it.

It would be possible to write a new PHP case statement for the switch which determines what displays, but I would have to sit down and study it.

I'm taking a quick look at this now. Wandering if you ever did implement this in one of your test? I'm looking to see if I can implement a way to not only hide any previous and top subcategories but also to only show categories that are immediate subcategories like the one's that show on the category pages no matter how many subcategories you go down. Im hoping you already dabbled with it or even implemented it, if not I'll continue to see if I can get it working in my spare time. Let me get the chance to say this the great work you've done is very appreciated.

2 Jul 2013, 9:57 AM
#2198
arc2 avatar

arc2

New Zenner

Join Date:
Jun 2013
Location:
NYC
Posts:
2
Plugin Contributions:
0

Post #2198 by arc2

I was able to modify it for my needs. You actually posted part of a code I needed in 2011 that I was able to combine with your beta version which pretty much took care of it. Took only a few minutes. You saved me plenty of time. Thank you.

8 Jul 2013, 8:39 PM
#2199
foxchild avatar

foxchild

New Zenner

Join Date:
Mar 2008
Posts:
16
Plugin Contributions:
0

Post #2199 by foxchild

I cannot seem to figure out what I've done wrong, but I can't get any of the changes I make in the stylesheet_chcategories_dressing.css to take effect. I have the ch_categories.php turned on in my admin panel. The website link is shadesofmidnight.com. This is an established website that I'm attempting to change themes on. I know that this is compatible with the theme I'm using as I've just set up another site with that theme and this mod without a problem. I've even compared files between the two sites and can't seem to find what is different and why I'm running into this problem.