Thread: Meta Tags Issue

Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2006
    Posts
    38
    Plugin Contributions
    0

    Default Meta Tags Issue

    Anyone noticed that the METATAGS_DIVIDER doesnt work?
    The meta tags that are auto created out of the site content are only separated by a space and are not comma separated?

    Thoughts on what to fix?

    CLEAN install of 1.36.

    I found the references to METATAGS_DIVIDER in the meta_tags.php, but messing with it has not yeilded any results in getting the commas in the between the words.

    I have looked at the METAs on this site, and the issue is there as well.

    Greg

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

    Default Re: Meta Tags Issue

    What do you have it defined as:
    /includes/languages/english/meta_tags.php

    Line #32 : define('METATAGS_DIVIDER', ' ');
    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!

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

    Default Re: Meta Tags Issue

    Note: if using templates and overrides and overriding this file be sure to look in your overrides directory for:
    PHP Code:
    /includes/languages/english/your_template_dir/meta_tags.php

    Line 
    #32 : define('METATAGS_DIVIDER', ' '); 
    If the define is missing, then it is set to a space ...
    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!

  4. #4
    Join Date
    Oct 2006
    Posts
    38
    Plugin Contributions
    0

    Default Re: Meta Tags Issue

    That's the stock code in place today, and as it comes out of the install.
    Meta keywords should be separated by a comma.

    I messed with that line with various characters, and it doesnt work.
    Even on the current ZC site here... (METAs posted below)
    The meta's in bold below are auto-created by ZC.
    The ones with the commas AFTER the bold, were defined in the CUSTOM METAs.

    I just want to know how to make it work correctly. My CUSTOM metas are fine. The code created METAs off the category and product listings does not put any separator in there.
    This is one piece of life that there is no code in my over-rides for, because I modified the core pages. (I know I shouldnt, but I had to get some changes made fast, then will come back around with a new template soon with everything in the right place.)

    Code:
    <meta name="keywords" content="free open source shopping cart program download ecommerce e-commerce ecomerce shop solution merchants merchant account website building online shoppers commercial programs news help forums features web design services hosting zencart community zen cart zen-cart paypal authorizenet linkpoint support free software, shopping cart, shopping cart software, web design, web hosting, web development, web developers, free program, online shopping, pay pal, software, free software, free software download, ecommerce shopping cart software, ecomerce, e-comerce, web store, internet store, softwear, secure ordering, storefront, merchant account, marketplace, secure server, ebusiness, e-business, home business, sell products, online catalog, authorizenet, php, mysql, database driven web site, ssl, secure socket layer, https, checkout, accept payment, accept credit cards" />

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

    Default Re: Meta Tags Issue

    In your templates and overrides directory:
    /includes/languages/english/your_template_dir/meta_tags.php

    Do you have the define for:
    PHP Code:
    // Define divider ... usually just a space or a comma plus a space
      
    define('METATAGS_DIVIDER'' '); 
    Change the define to read:
    PHP Code:
      define('METATAGS_DIVIDER'', '); 
    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!

  6. #6
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Meta Tags Issue

    Quote Originally Posted by SpeedRacer View Post
    Meta keywords should be separated by a comma.
    Actually, I've found by reading articles by seo experts, most feel that it doesn't matter whether or not you have a comma. I read somewhere that some feel no comma is actually better, as it allows search engines to make different combinations of your keywords (those *extremely* few search engines that actually use your keywords to rank your site). Anyway, my point is that it is a personal preference, and not an error on zen cart's part.

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

    Default Re: Meta Tags Issue

    We added the delimiter to allow for personal preference ... but we also believe no commas is better for the very reasons you stated ...
    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!

  8. #8
    Join Date
    Oct 2006
    Posts
    38
    Plugin Contributions
    0

    Default Re: Meta Tags Issue

    Go mess with the code, put in a delimiter, any delimiter you want.
    Push you page onto the server.
    Reload your page, and the delimiter doesnt work, because it doesnt show up.
    Oh well, and o thread.

  9. #9
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Meta Tags Issue

    Quote Originally Posted by SpeedRacer View Post
    Go mess with the code, put in a delimiter, any delimiter you want.
    Push you page onto the server.
    Reload your page, and the delimiter doesnt work, because it doesnt show up.
    Oh well, and o thread.
    Err, I just tried it, and it works just fine. Are you sure you don't have a meta_tags.php in a includes/languages/english/YOUR_TEMPLATE/ folder? Are you making the changes there.

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

    Default Re: Meta Tags Issue

    Make sure that your templates and overrides directory:
    /includes/languages/english/your_template_dir

    Is spelled correctly, including case ...

    NOTE: you should not have space or special characters etc. in your template and override directory name ...

    Have you an URL to your site?
    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!

 

 

Similar Threads

  1. Replies: 11
    Last Post: 23 Nov 2009, 02:57 AM
  2. Replies: 1
    Last Post: 27 Nov 2008, 02:27 PM
  3. When setting product keyword meta tags, sitewide tags are added?
    By amdowney in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Nov 2008, 12:58 AM
  4. PLEASE help with a meta tags issue
    By HandcraftedUK in forum General Questions
    Replies: 0
    Last Post: 25 Feb 2008, 10:29 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