Forums / General Questions / Remove Store Name from <meta name="description" content=

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

Views: 2,848

Results 1 to 10 of 10
8 Mar 2011, 8:05 PM
#1
podgeminster avatar

podgeminster

New Zenner

Join Date:
Mar 2011
Posts:
46
Plugin Contributions:
0

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)

8 Mar 2011, 9:01 PM
#3
podgeminster avatar

podgeminster

New Zenner

Join Date:
Mar 2011
Posts:
46
Plugin Contributions:
0

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

8 Mar 2011, 11:10 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

9 Mar 2011, 3:53 PM
#5
podgeminster avatar

podgeminster

New Zenner

Join Date:
Mar 2011
Posts:
46
Plugin Contributions:
0

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,account_password,address_book,advanced_search,advanced_search_result,checkout_success,checkout_process,checkout_shipping,checkout_payment,checkout_confirmation,cookie_usage,create_account_success,contact_us,download,download_timeout,customers_authorization,down_for_maintenance,password_forgotten,time_out,unsubscribe,info_shopping_cart,popup_image,popup_image_additional,product_reviews_write,ssl_check'); // 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'); ?>
9 Mar 2011, 4:48 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

9 Mar 2011, 8:02 PM
#7
podgeminster avatar

podgeminster

New Zenner

Join Date:
Mar 2011
Posts:
46
Plugin Contributions:
0

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.

14 Jul 2016, 2:41 PM
#8
aleica00 avatar

aleica00

New Zenner

Join Date:
Dec 2011
Posts:
7
Plugin Contributions:
0

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

14 Jul 2016, 3:04 PM
#9
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

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

aleica00:

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.

14 Jul 2016, 5:16 PM
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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

aleica00:

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...