Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35
  1. #1
    Join Date
    Nov 2007
    Posts
    99
    Plugin Contributions
    0

    Default Remove some category links from header bar

    Hi,

    How do I remove links from the header categories bar? I have some "Document-General" categories which I do not want listed on the top header bar. Which file do I need to edit to stop some categories from appearing there? I successfully removed the categories from the drop down menu, but am unable to remove them from the categories bar.


    Store url: http://www.starruby.in/store

    Thanks,
    Harshil

  2. #2
    Join Date
    Oct 2007
    Location
    Fairbanks, Alaska
    Posts
    426
    Plugin Contributions
    0

    Idea or Suggestion Re: Remove some category links from header bar

    look under admin, configuration, layout setting, Categories-Tabs Menu ON/OFF

    try that, I am not sure with your template but it mite work.

    pete
    Last edited by colemanpa; 1 Jan 2009 at 12:45 AM. Reason: changed something

  3. #3
    Join Date
    Nov 2007
    Posts
    99
    Plugin Contributions
    0

    Default Re: Remove some category links from header bar

    Quote Originally Posted by colemanpa View Post
    look under admin, configuration, layout setting, Categories-Tabs Menu ON/OFF

    try that, I am not sure with your template but it mite work.

    pete
    Well that would turn off the categories tabs menu completely. What I want to achieve is just remove some links from the tabs menu (the documents-general links, which I dont want there).

    Thanks,
    Harshil

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

    Default Re: Remove some category links from header bar

    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> ';
      }
    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. #5
    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
    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 Linda,

    Thanks for your help. I tried adding that code near the bottom of categories_tabs.php, however it doesn't change anything.

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

    Default Re: Remove some category links from header bar

    The original code reads:
    Code:
      // 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> ';
    That code replaces it ...

    Note: the categories do need to be Document General for that to work ...
    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. #7
    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
    The original code reads:
    Code:
      // 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> ';
    That code replaces it ...

    Note: the categories do need to be Document General for that to work ...
    Thanks Linda.. worked perfectly

    Happy New Year to you and your family.

    Regards,
    Harshil

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

    Default Re: Remove some category links from header bar

    And a very Merry New Year to you and your's ...

    Glad that that worked for you and sorry I didn't post the original code before to make it clearer for you ... but, alas, I had a lazy moment ...
    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. #9
    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
    And a very Merry New Year to you and your's ...

    Glad that that worked for you and sorry I didn't post the original code before to make it clearer for you ... but, alas, I had a lazy moment ...
    I was lazier... I should have figured it out !

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

    Default Re: Remove some category links from header bar

    I never said that ...
    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 1 of 4 123 ... 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