Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    27
    Plugin Contributions
    0

    Default Remove Long Category List from META_DATA

    I need to get rid of the auto add list of categories becaue it is incompatible with the content on all my pages. I.E. that is reason WHY different categories exist. I have been working for 4 hours and have been unable to remove the categories without screwing up something else.

    Would someone with more experience than I please, please, please assist me in commenting out the correct lines and/or modifying the correct file(s).

    Thank you,

    William

  2. #2
    Join Date
    Nov 2007
    Posts
    27
    Plugin Contributions
    0

    Default Re: Remove Long Category List from META_DATA

    If you need to see it, my site is www.Custom-BuiltPC.com

    Thanks,

    William

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Remove Long Category List from META_DATA

    If you want Zen Cart to *never* include your categories in *any* of its generated metatags on *any* page in Zen Cart, comment out the following code in /includes/modules/your_template/meta_tags.php:
    Code:
    // Get all top category names for use with web site keywords
    $sql = "select cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = 0 and c.categories_id = cd.categories_id and cd.language_id='" . (int)$_SESSION['languages_id'] . "' and c.categories_status=1";
    $keywords_metatags = $db->Execute($sql);
    while (!$keywords_metatags->EOF) {
      $keywords_string_metatags .= zen_clean_html($keywords_metatags->fields['categories_name']) . METATAGS_DIVIDER;
      $keywords_metatags->MoveNext();
    }
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Nov 2007
    Posts
    27
    Plugin Contributions
    0

    Default Re: Remove Long Category List from META_DATA

    DrByte,

    I should have clarified that I earlier identified the code, but I was unable to comment it out without some text the same or similar to the following: NAVBAR_TITLE_1 . SECONDARY_SECTION

    showing up in my meta tags in place of the text I would like omitted. I just need to know which lines, specifically, to comment out.

    Thank you very much for your response and your willingness to assist me.

    Sincerely,

    William

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Remove Long Category List from META_DATA

    The specific lines I posted are the ones to comment out if you want the effect I described.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Remove the category product list
    By erinrado in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 Jan 2010, 11:02 PM
  2. Remove Number of Items in Category List
    By riscphree in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Oct 2008, 09:08 PM
  3. long attribute list / scrolling list?
    By Shara in forum General Questions
    Replies: 3
    Last Post: 26 May 2007, 02:00 AM

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