Results 1 to 10 of 10
  1. #1

    Default Remove Store Name from <meta name="description" content=

    Hi,

    The new Zen Cart generated pages of my website are now being indexed by the search engines but I have noticed that when displayed in the list of search engine results, my store name appears at the beginning of every page description.

    If I navigate to an individual product and view the page source in my browser, my store’s name is being automatically added to the beginning of the description meta tag as follows:

    <meta name="description" content=”>Shop name automatically added here< >Product description here<" />

    I’d be very grateful for any suggestions on how to remove my store’s name from the beginning of this meta tag. (I’m using version v1.3.9h)

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Remove Store Name from <meta name="description" content=

    You must have added it as a domain name somewhere

    Use the devekopers tool kit to find where

    https://www.zen-cart.com/tutorials/index.php?article=38
    https://www.zen-cart.com/tutorials/index.php?article=39
    Zen-Venom Get Bitten

  3. #3

    Default Re: Remove Store Name from <meta name="description" content=

    My store’s name is FGEShop. Before making this post I used the Developers Tool Kit to search ‘FGEShop’ and the only occurrence of ‘FGEShop’ I can find is in:

    includes/languages/english/meta_tags.php

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Remove Store Name from <meta name="description" content=

    Post title
    Remove Store Name from <meta name="description" content=
    My store’s name is FGEShop. Before making this post I used the Developers Tool Kit to search ‘FGEShop’ and the only occurrence of ‘FGEShop’ I can find is in:

    includes/languages/english/meta_tags.php
    Well, Post what you have for that here
    Zen-Venom Get Bitten

  5. #5

    Default Re: Remove Store Name from <meta name="description" content=

    <?php
    /**
    * @package languageDefines
    * @copyright Copyright 2003-2008 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: meta_tags.php 10330 2008-10-10 20:14:32Z drbyte $
    */

    // page title
    define('TITLE', 'FGEShop');

    // Site Tagline
    define('SITE_TAGLINE', 'Buy Garage Equipment & Tools Online');

    // Custom Keywords
    define('CUSTOM_KEYWORDS', 'ecommerce, open source, shop, online shopping');

    // Home Page Only:
    define('HOME_PAGE_META_DESCRIPTION', '');
    define('HOME_PAGE_META_KEYWORDS', '');

    // NOTE: If HOME_PAGE_TITLE is left blank (default) then TITLE and SITE_TAGLINE will be used instead.
    define('HOME_PAGE_TITLE', ''); // usually best left blank


    // EZ-Pages meta-tags. Follow this pattern for all ez-pages for which you desire custom metatags. Replace the # with ezpage id.
    // If you wish to use defaults for any of the 3 items for a given page, simply do not define it.
    // (ie: the Title tag is best not set, so that site-wide defaults can be used.)
    // repeat pattern as necessary
    define('META_TAG_DESCRIPTION_EZPAGE_#','');
    define('META_TAG_KEYWORDS_EZPAGE_#','');
    define('META_TAG_TITLE_EZPAGE_#', '');

    // 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', '');

    // Review Page can have a lead in:
    define('META_TAGS_REVIEW', 'Reviews: ');

    // separators for meta tag definitions
    // Define Primary Section Output
    define('PRIMARY_SECTION', ' : ');

    // Define Secondary Section Output
    define('SECONDARY_SECTION', ' - ');

    // Define Tertiary Section Output
    define('TERTIARY_SECTION', ', ');

    // Define divider ... usually just a space or a comma plus a space
    define('METATAGS_DIVIDER', ' ');

    // Define which pages to tell robots/spiders not to index
    // This is generally used for account-management pages or typical SSL pages, and usually doesn't need to be touched.
    define('ROBOTS_PAGES_TO_SKIP','login,logoff,create_account,account,account_edit, account_history,account_history_info,account_newsletters,account_notifications,a ccount_password,address_book,advanced_search,advanced_search_result,checkout_suc cess,checkout_process,checkout_shipping,checkout_payment,checkout_confirmation,c ookie_usage,create_account_success,contact_us,download,download_timeout,customer s_authorization,down_for_maintenance,password_forgotten,time_out,unsubscribe,inf o_shopping_cart,popup_image,popup_image_additional,product_reviews_write,ssl_che ck');


    // favicon setting
    // There is usually NO need to enable this unless you need to specify a path and/or a different filename
    define('FAVICON','fges.ico');

    ?>

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Remove Store Name from <meta name="description" content=

    // page title
    define('TITLE', 'FGEShop');
    What is included or how these are assembled for pages is in
    /includes/modules/meta_tags.php

    So you can create a copy in a folder named for your template there and edit where you do not want it

    Look for where the constant named "TITLE" is called
    Zen-Venom Get Bitten

  7. #7

    Default Re: Remove Store Name from <meta name="description" content=

    Found it.

    Find line 274 of:

    /includes/modules/meta_tags.php

    …which should read:

    define('META_TAG_DESCRIPTION', str_replace('"','',TITLE . ' ' . $meta_products_name . SECONDARY_SECTION . $meta_products_description . ' '));

    …change to:

    define('META_TAG_DESCRIPTION', str_replace('"','',$meta_products_name . SECONDARY_SECTION . $meta_products_description . ' '));

    Many thanks kobra.

  8. #8
    Join Date
    Dec 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Remove Store Name from <meta name="description" content=

    hi; i can't find my <meta name="description" content= on my folders, please i need help, where does this folder is located? Than you

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: Remove Store Name from <meta name="description" content=

    Quote Originally Posted by aleica00 View Post
    hi; i can't find my <meta name="description" content= on my folders, please i need help, where does this folder is located? Than you
    The meta-tag information is "built on the fly" by the module /includes/modules/meta_tags.php. That file can be customized via a template-override, too, so there might be a file named /includes/modules/YOUR_TEMPLATE/meta_tags.php.

  10. #10
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Remove Store Name from <meta name="description" content=

    Quote Originally Posted by aleica00 View Post
    hi; i can't find my <meta name="description" content= on my folders, please i need help, where does this folder is located? Than you
    FYI, items such as this that are "put together" based on database information, are not likely to be found by search on a large/long string. A search for meta may have been sufficient to find the file (and a smattering of a few others). Just something to keep in mind as you continue on your way. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Replies: 11
    Last Post: 16 Mar 2012, 09:43 AM
  2. Replies: 1
    Last Post: 21 Jul 2010, 07:36 PM
  3. meta name="description" same as meta name="keywords"
    By jekka75 in forum General Questions
    Replies: 1
    Last Post: 22 Jul 2009, 02:41 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