I'm looking for something along these same lines. Would like one look or the other whichever is easier to get working .
1. Remove the Categories from the header tab, but keeping the graphic line.
2. If impossible to keep just the line, have only a select few Cats show. I want this on all of my sites because I will have too many Cats and it just makes that darn image grow and grow..lol.. it will take over my page!
Here is one of the shops :
http://www.lilleypadcove.com/lilleypadgifts
Want the pretty line divider, don't want the endless list of cats ...possible?
Hi Ajeh,
I know this thread is old but I have a similar situation. I want to take off a couple of Product - General categories from my category header bar. This code you mentioned was specifically for Document - General category items.
Can I use the code for the Product - General categories, and if so, what coding needs to be changed to work?
thank you!
Kim
To skip categories_id 13 and 47, change the IF to read:
Code:if ($categories_tab->fields['categories_id'] == '13' || $categories_tab->fields['categories_id'] == '47') {
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Thank you Ajeh! Worked perfectly!
Thanks for the update that this was able to work for you ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Along the same lines . . .
I want to add a short description under each category name only in the category header bar. Specifically I want the category description text (which will be really short) under the category name.
Here is an example: http://blog.wallvinyldecal.com/testimonials/
My guess is that I need a line of code (or add a section of code) to the categories_tabs.php page.
Any help would be greatly appreciated.
Thank you!
Kim
You would need to customize the code some more to catch the specific categories_id and get the text that you want ...
You might try something like this:
See if that gets you in the right direction ...Code:// bof: add tag line to categories switch((int)$categories_tab->fields['categories_id']) { case (1): $cat_tag = '<span>' . 'Happy Days!' . '</span>'; break; case (2): $cat_tag = '<span>' . 'Hello World' . '</span>'; break; default: $cat_tag = '<span>' . 'No Clue: ' . (int)$categories_tab->fields['categories_id'] . '</span>'; break; } // create link to top level category $links_list[] = '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . (int)$categories_tab->fields['categories_id']) . '">' . $categories_tab_current . '</a> ' . $cat_tag; // eof: add tag line to categories
NOTE: I stuck the <span> tags in there just to show that you could ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Ajeh, as always you are right on the money with your coding. Thank you!
As it stands, the cat tags are sitting to the right of the category name. I would like them underneath the category name they are attached to.
Is there some way to limit the width of each category name section so that the cat tag has to wrap to the next line?
Or is there some coding I can add to the cat tag to position it under the category header?
Or could I move the cat tag coding outside the category tag code and place it below, independent from the category tag code?
Whatever is the easiest would be fine with me. Although the third option seems like it would satisfy another issue I have with the cat tags being forced to use the cufon I have set up with the header. I can't seem to disable it for the cat tags only.
Here is a link to what it looks like now: http://www.wallvinyldecal.com/design...index&cPath=70
Here is a link of what I want it to look like: http://blog.wallvinyldecal.com/testimonials/
Your help is much appreciated!
Kim
What happens if you change:
. $cat_tag
to read:
. '<br />' . $cat_tag
Does this work for you?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Bookmarks