Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2014
    Location
    Romania
    Posts
    2
    Plugin Contributions
    0

    Default Categories appearing as Keywords in the individual products meta tags

    Hello all,

    My website is http://www.anticariat-esoteric.ro/ .

    The problem I have is that the automated keyword generator makes a list of all my Categories and inserts that as meta keywords to each of my individual products. So, each individual product ends up with a huge list of keywords (you can check that out on any product from my website, by viewing the page source). There were some similar posts regarding this issue, but none of them offered a definite solution. I figured out that there need to be done some modification in /includes/modules/YOUR_TEMPLATE_FOLDERNAME/meta_tags.php , in the following section of the code:

    PHP Code:
    define('KEYWORDS'str_replace('"','',zen_clean_html($keywords_string_metatags) . CUSTOM_KEYWORDS)); 
    Can somebody please tell me how should I edit this line code so that the only keywords in the meta description of the products will be only those of the products themselves?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Categories appearing as Keywords in the individual products meta tags


  3. #3
    Join Date
    Sep 2014
    Location
    Romania
    Posts
    2
    Plugin Contributions
    0

    Default Re: Categories appearing as Keywords in the individual products meta tags

    Thanks for the link, stevesh. OK, so the instructions from Dr.Byte are clear and easy to follow:

    a) copy /includes/modules/meta_tags.php to /includes/modules/YOURTEMPLATE

    b) find the line that says this:


    Code:
    define('KEYWORDS', str_replace('"','',zen_clean_html($keywords_string_metatags) . CUSTOM_KEYWORDS));
    c) add a line ABOVE that line, which says this:

    Code:
    $keywords_string_metatags = "";
    d) save and upload the file


    I would have one last question regarding this line code which should be inserted in meta_tags.php :

    Code:
    $keywords_string_metatags = "";
    What exactly does it do? I'm nowhere close to a programmer, but it would be nice if I could learn something new regarding this issue.

 

 

Similar Threads

  1. Meta tags with individual products-my problems
    By justame45 in forum General Questions
    Replies: 3
    Last Post: 29 Jan 2011, 12:09 AM
  2. meta tags keywords & description are the same
    By machoman in forum General Questions
    Replies: 35
    Last Post: 3 Sep 2008, 03:10 PM
  3. Replies: 0
    Last Post: 30 Apr 2008, 12:19 PM
  4. meta tags, keywords getting the names frm categories
    By Jmus in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Apr 2008, 02:04 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