Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 35
  1. #11
    Join Date
    Nov 2007
    Posts
    99
    Plugin Contributions
    0

    Default Re: Remove some category links from header bar

    Quote Originally Posted by Ajeh View Post
    I never said that ...
    You people are so helpful that even if I am sure I can find the solution to a problem, I can't resist posting here!

  2. #12
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    550
    Plugin Contributions
    0

    Default Re: Remove some category links from header bar

    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?

  3. #13

    red flag Re: Remove some category links from header bar

    Quote Originally Posted by Ajeh View Post
    See if this works for you on the categories_tabs.php module down near the bottom of the file:
    Code:
      if (zen_get_product_types_to_category($categories_tab->fields['categories_id']) == 3) {
        // skip it
      } else {
        // 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> ';
      }
    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

  4. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Remove some category links from header bar

    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!

  5. #15

    Default Re: Remove some category links from header bar

    Thank you Ajeh! Worked perfectly!

  6. #16
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Remove some category links from header bar

    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!

  7. #17

    Default Re: Remove some category links from header bar

    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

  8. #18
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Remove some category links from header bar

    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:
    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
    
    See if that gets you in the right direction ...

    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!

  9. #19

    Default Re: Remove some category links from header bar

    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

  10. #20
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Remove some category links from header bar

    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!

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Remove some links from information sidebxo...
    By slycrespo in forum General Questions
    Replies: 3
    Last Post: 7 Mar 2011, 05:48 AM
  2. remove links bar on header image
    By uniqueliving in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Aug 2010, 11:41 PM
  3. category links in header - how do i remove?
    By kal in forum Basic Configuration
    Replies: 3
    Last Post: 25 Mar 2010, 04:15 PM
  4. remove category links from top of page below header
    By dellvostro in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 Oct 2008, 01:50 PM
  5. removing only "some" links from side bar
    By chachab in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Apr 2008, 06:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR