Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2005
    Posts
    140
    Plugin Contributions
    0

    Default meta tags problem

    I'm having problems changing the meta tags on my home page. I searched this forum before and did find a couple threads that addressed this very issue, but unfortunately when i tried following the steps to fix it, it just didn't work.

    The only meta tags file on my server is in the includes/modules/ folder. Also, I am using version 1.2.x if that helps. I just want to be able to keep it from listing out my category names as meta tags. Thanks in advance for your help.

  2. #2
    Join Date
    Sep 2005
    Posts
    95
    Plugin Contributions
    0

    Default Re: meta tags problem

    Make a backup copy of meta_tags.php.

    On line 39 in meta_tags.php that looks like this:
    Code:
      $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 .= $keywords_metatags->fields['categories_name'] . ' ';
        $keywords_metatags->MoveNext();
      }
    Comment it out like this:

    Code:
    //  $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 .= $keywords_metatags->fields['categories_name'] . ' ';
    //    $keywords_metatags->MoveNext();
    //  }
    Then upload your changes and it should prevent it from showing your category names as meta tags.
    Zen-Cart, The Greatest Shopping Cart!

  3. #3
    Join Date
    Aug 2005
    Posts
    140
    Plugin Contributions
    0

    Default Re: meta tags problem

    Well, I tried that but unfortunately it didn't work. After commenting out that section and uploading it to my server, it wouldn't even load my site as it found an error with the file. Any other ideas?

  4. #4
    Join Date
    Oct 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: meta tags problem

    just found this old thread
    For some body searching this in future, to remove category names from metatags

    in /includes/modules/metatags.php
    replace
    define('KEYWORDS', str_replace('"','',zen_clean_html($keywords_string_metatags) . CUSTOM_KEYWORDS));
    with
    define('KEYWORDS', CUSTOM_KEYWORDS);

  5. #5
    Join Date
    Apr 2008
    Location
    UK
    Posts
    326
    Plugin Contributions
    1

    Default Re: meta tags problem

    Hi

    Would you not have a meta_tags file in includes>languages>YOUR LANGUAGE>meta_tags.php?

    Phil

 

 

Similar Threads

  1. Meta Tags Problem
    By thefashionhut in forum General Questions
    Replies: 7
    Last Post: 8 Jan 2008, 07:45 PM
  2. Meta tags problem
    By neddie in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Sep 2007, 12:12 AM

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