Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2007
    Posts
    26
    Plugin Contributions
    0

    Default meta data for define_pages

    Im trying to add meta description tags for my define pages. There doesn't seem to be an over ride for them in meta_tags.php

    Are they someplace else,or am I out of luck

    Thanks

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: meata data for define_pages

    Quote Originally Posted by stevebrett View Post
    Im trying to add meta description tags for my define pages. There doesn't seem to be an over ride for them in meta_tags.php

    Are they someplace else,or am I out of luck

    Thanks
    includes/languages/english/meta_tags.php

    // Per-Page meta-tags. Follow this pattern for individual pages you wish to override. This is useful mainly for additional pages.
    // replace "page_name" with the UPPERCASE name of your main_page= value, such as ABOUT_US or SHIPPINGINFO etc.
    // repeat pattern as necessary
    define('META_TAG_DESCRIPTION_page_name','');
    define('META_TAG_KEYWORDS_page_name','');
    define('META_TAG_TITLE_page_name', '');

  3. #3
    Join Date
    Jul 2010
    Posts
    11
    Plugin Contributions
    0

    Default Re: meata data for define_pages

    Hello!

    I am having a problem with my meta_tags.php files. I am using Zen Cart version 1.3.9d, and am using the pinkywinky template. The problem I am having is that I have edited my Per-Page meta-tags:

    // Per-Page meta-tags. Follow this pattern for individual pages you wish to override. This is useful mainly for additional pages.
    // replace "page_name" with the UPPERCASE name of your main_page= value, such as ABOUT_US or SHIPPINGINFO etc.
    // repeat pattern as necessary
    define('META_TAG_DESCRIPTION_page_name','');
    define('META_TAG_KEYWORDS_page_name','');
    define('META_TAG_TITLE_page_name', '');

    in this section, under includes/languages/english/meta_tags.php, and have saved them under includes/languages/english/pinkywinky/meta_tags.php, but when I view my site live all of my pages have the same meta description, title, and keywords as my home page, and none of the per-page meta-tags information that I have edited has been changed. I have 38 entries in this file under per-page meta-tags, and not a single one has changed. I have looked over this file a thousand times, and can not see where I might have missed anything like an apostrophe or anything like that that might make it not work, so I am not sure what is wrong.
    I am desperate to find a solution to this, because after using Google Webmaster Tools on my site, it was suggested that my site was not getting the ranking it could due to repetitive meta titles, descriptions and keywords. Thank you so much for any help!

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: meata data for define_pages

    Quote Originally Posted by imaginationtoy View Post
    Hello!

    I am having a problem with my meta_tags.php files. I am using Zen Cart version 1.3.9d, and am using the pinkywinky template. The problem I am having is that I have edited my Per-Page meta-tags:

    // Per-Page meta-tags. Follow this pattern for individual pages you wish to override. This is useful mainly for additional pages.
    // replace "page_name" with the UPPERCASE name of your main_page= value, such as ABOUT_US or SHIPPINGINFO etc.
    // repeat pattern as necessary
    define('META_TAG_DESCRIPTION_page_name','');
    define('META_TAG_KEYWORDS_page_name','');
    define('META_TAG_TITLE_page_name', '');

    in this section, under includes/languages/english/meta_tags.php, and have saved them under includes/languages/english/pinkywinky/meta_tags.php, but when I view my site live all of my pages have the same meta description, title, and keywords as my home page, and none of the per-page meta-tags information that I have edited has been changed. I have 38 entries in this file under per-page meta-tags, and not a single one has changed. I have looked over this file a thousand times, and can not see where I might have missed anything like an apostrophe or anything like that that might make it not work, so I am not sure what is wrong.
    I am desperate to find a solution to this, because after using Google Webmaster Tools on my site, it was suggested that my site was not getting the ranking it could due to repetitive meta titles, descriptions and keywords. Thank you so much for any help!
    You don't need to list all 30 pages but it might help it you could list one or two of them so we can see what edits you have made.

  5. #5
    Join Date
    Jul 2010
    Posts
    11
    Plugin Contributions
    0

    Default Re: meata data for define_pages

    Here are two of the entries I have made. The first one is for my main category page, and the second is for one of my individual products under that category.


    // Per-Page meta-tags. Follow this pattern for individual pages you wish to override. This is useful mainly for additional pages.
    // replace "page_name" with the UPPERCASE name of your main_page= value, such as ABOUT_US or SHIPPINGINFO etc.
    // repeat pattern as necessary
    define('META_TAG_DESCRIPTION_INDEX&CPath=1','The sexiest lingerie, corsets, baby dolls, gowns, thongs, bras and panties');
    define('META_TAG_KEYWORDS_INDEX&CPath=1','######## lingerie, corsets, baby dolls, gowns, hosiery, thongs, bras, panties');
    define('META_TAG_TITLE_INDEX&CPath=1','######## Lingerie, Bras And Panties For Women');

    define('META_TAG_DESCRIPTION_PRODUCT_INFO&CPath=1&PRODUCTS_ID=13','An elegant and ######## pearl thong for women');
    define('META_TAG_KEYWORDS_PRODUCT_INFO&CPath=1&PRODUCTS_ID=13','######## lingerie, pearl thong, Bracli, French lace');
    define('META_TAG_TITLE_PRODUCT_INFO&CPath=1&PRODUCTS_ID=13','An Elegant And ######## Pearl Thong To Entice Your Lover');

    Those # signs are not in the file, they just showed up when I posted it here.

  6. #6
    Join Date
    Sep 2010
    Posts
    19
    Plugin Contributions
    0

    Default Re: meata data for define_pages

    The custom meta tags for products are added via the admin area of zen cart.

    The meta tags specified in languages/english/meta_tags.php are just for the special informational pages and EZ Pages that you add.

    If you want to change such a page, make sure its name is with upper case characters all over.

    If you want to change meta tags / description / keywords, you can do it from the admin area.

  7. #7
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: meata data for define_pages

    This article in the tutorials/FAQ section may be of help

  8. #8
    Join Date
    Jul 2010
    Posts
    11
    Plugin Contributions
    0

    Default Re: meata data for define_pages

    Thank you for your replies!

    I do have meta descriptions, titles and keywords input through the admin for all of my products, and for all of my categories as well. But when I go to my store online and look at the page source, every single page has the same description, title and keywords, and they are the description, title and keywords I have written for my home page. The meta information I have written for my categories and products do not show up at all on there respective pages.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: meata data for define_pages

    Quote Originally Posted by imaginationtoy View Post
    Here are two of the entries I have made. The first one is for my main category page, and the second is for one of my individual products under that category.


    // Per-Page meta-tags. Follow this pattern for individual pages you wish to override. This is useful mainly for additional pages.
    // replace "page_name" with the UPPERCASE name of your main_page= value, such as ABOUT_US or SHIPPINGINFO etc.
    // repeat pattern as necessary
    define('META_TAG_DESCRIPTION_INDEX&CPath=1','The sexiest lingerie, corsets, baby dolls, gowns, thongs, bras and panties');
    define('META_TAG_KEYWORDS_INDEX&CPath=1','######## lingerie, corsets, baby dolls, gowns, hosiery, thongs, bras, panties');
    define('META_TAG_TITLE_INDEX&CPath=1','######## Lingerie, Bras And Panties For Women');

    define('META_TAG_DESCRIPTION_PRODUCT_INFO&CPath=1&PRODUCTS_ID=13','An elegant and ######## pearl thong for women');
    define('META_TAG_KEYWORDS_PRODUCT_INFO&CPath=1&PRODUCTS_ID=13','######## lingerie, pearl thong, Bracli, French lace');
    define('META_TAG_TITLE_PRODUCT_INFO&CPath=1&PRODUCTS_ID=13','An Elegant And ######## Pearl Thong To Entice Your Lover');

    Those # signs are not in the file, they just showed up when I posted it here.
    You cannot use that method for INDEX or PRODUCT_INFO pages. As clydejones has said, you do that in the admin on each of the categories and products.
    .

    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.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: meata data for define_pages

    Quote Originally Posted by imaginationtoy View Post
    I do have meta descriptions, titles and keywords input through the admin for all of my products, and for all of my categories as well. But when I go to my store online and look at the page source, every single page has the same description, title and keywords, and they are the description, title and keywords I have written for my home page. The meta information I have written for my categories and products do not show up at all on there respective pages.
    That suggests that you've made inappropriate edits to the html_header.php template file. If you edit that file and break the normal functionality, then all the info you enter via the admin will be useless.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Meta data for home and other pages
    By maxy007 in forum General Questions
    Replies: 0
    Last Post: 23 Jan 2011, 06:26 AM
  2. Meta Data...?
    By zerocool9455 in forum General Questions
    Replies: 2
    Last Post: 27 May 2010, 05:38 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