Forums / General Questions / how to edit homepage title/meta tags?

how to edit homepage title/meta tags?

Locked

Views: 5,826

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
9 Sep 2009, 9:19 PM
#1
poolside avatar

poolside

New Zenner

Join Date:
May 2008
Posts:
15
Plugin Contributions:
0

how to edit homepage title/meta tags?

How do I edit the Title and Meta tags for the homepage and the "all products" page?

I know zen cart lets you edit the title and meta tags of most pages (that is not what im having problems with. )

Im having trouble edting the title and meta tags of the following pages ONLY (editing all other pages is easy). It seems zencart does not let you edit the homepage title/meta tags and the all-products page

  1.   htt p :// m y o n l i ne s p or t s d e p o t . c om
    
  2.   h t t p : / / m y o n l i n e s p o r t s d e p o t . c o m / a l l- p r o d u c t s /
    
10 Sep 2009, 1:56 AM
#2
kobra avatar

kobra

Black Belt

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

Re: how to edit homepage title/meta tags?

It only take ONE space to break the link

http: //www.zen-cart.com

Zen-Venom Get Bitten

10 Sep 2009, 2:58 AM
#3
jqpublic avatar

jqpublic

New Zenner

Join Date:
Aug 2009
Posts:
59
Plugin Contributions:
0

Re: how to edit homepage title/meta tags?

and besides, why not just post your link? the search engines love to see links from different sites to your site, it gives you a better page rank over time.

all I wanna do is sell stuff. I didn't sign up for this!
John's Pet Supplies

10 Sep 2009, 3:00 AM
#4
poolside avatar

poolside

New Zenner

Join Date:
May 2008
Posts:
15
Plugin Contributions:
0

Re: how to edit homepage title/meta tags?

JQPublic:

and besides, why not just post your link? the search engines love to see links from different sites to your site, it gives you a better page rank over time.

I just don't want customers google my domain name to find out that I needed help with the shopping-cart/website. That might scare them away. They might think "this bozo doesn't know what he is doing so why should I buy from him"

10 Sep 2009, 3:02 AM
#5
jqpublic avatar

jqpublic

New Zenner

Join Date:
Aug 2009
Posts:
59
Plugin Contributions:
0

Re: how to edit homepage title/meta tags?

ahhhhhhhhhhhhhhh i didn't think about that.

all I wanna do is sell stuff. I didn't sign up for this!
John's Pet Supplies

10 Sep 2009, 3:27 AM
#7
poolside avatar

poolside

New Zenner

Join Date:
May 2008
Posts:
15
Plugin Contributions:
0

Re: how to edit homepage title/meta tags?

JQPublic:

you can try reading this Tutorial if you haven't already.
https://www.zen-cart.com/tutorials/index.php?article=62

If you read my thread carefully you would see that i KNOW HOW TO edit titles and meta tags but the meta/title tags of the all-products page is not editable through zen cart (that i know how) and so there has to be an alternate way to edit those.

I have all the other meta/title tags done already its just the all-products page and the homepage

i hate it when people don't read and understand threads fully. You probably just read the thread title and that was it. READ THE WHOLE THING.

10 Sep 2009, 4:03 AM
#8
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Re: how to edit homepage title/meta tags?

Hi,

To edit your HOME page:

/includes/languages/english/YOUR_template_name/meta_tags.php

The All products meta tag info is taken from the home page meta tags but adds to end of other META TAGS the title: All Products.

Finish your meta tag keywords with a ,

or for example your last keyword will be:

hats, shirts, pants all products

instead of

hats, shirts, pants, all products

That wasn't the plan!

10 Sep 2009, 5:14 AM
#9
jqpublic avatar

jqpublic

New Zenner

Join Date:
Aug 2009
Posts:
59
Plugin Contributions:
0

Re: how to edit homepage title/meta tags?

poolside:

If you read my thread carefully you would see that i KNOW HOW TO edit titles and meta tags but the meta/title tags of the all-products page is not editable through zen cart (that i know how) and so there has to be an alternate way to edit those.

I have all the other meta/title tags done already its just the all-products page and the homepage

i hate it when people don't read and understand threads fully. You probably just read the thread title and that was it. READ THE WHOLE THING.

ok bucko, off to time out for you!
hey man I saw you were a new zenner and thought I would at least try to help. :censored:

all I wanna do is sell stuff. I didn't sign up for this!
John's Pet Supplies

10 Sep 2009, 6:50 AM
#10
poolside avatar

poolside

New Zenner

Join Date:
May 2008
Posts:
15
Plugin Contributions:
0

Re: how to edit homepage title/meta tags?

JQPublic:

ok bucko, off to time out for you!
hey man I saw you were a new zenner and thought I would at least try to help. :censored:

I am sorry. I have had a crazy day today. I was really wound up tight when i wrote that. It is now the end of the day and I am trying to uwind and relax.

once again im sorry and thank you for trying to help out a new zenner

If i could buy you a beer i would.

10 Sep 2009, 11:15 AM
#11
jqpublic avatar

jqpublic

New Zenner

Join Date:
Aug 2009
Posts:
59
Plugin Contributions:
0

Re: how to edit homepage title/meta tags?

LOL send me a cyber-beer lol
no problem my friend and I fully understand the frustrations of trying to make things go right with your website. It's all water under the bridge. You can come out of time out now LOL

John

all I wanna do is sell stuff. I didn't sign up for this!
John's Pet Supplies

11 Sep 2009, 1:45 AM
#12
poolside avatar

poolside

New Zenner

Join Date:
May 2008
Posts:
15
Plugin Contributions:
0

Re: how to edit homepage title/meta tags?

ok so i was able to change the hompage title and meta tags. But how do I change the "all-products" page title/meta tags separately.

In other words the "all-products" page Meta tags should be differnt from the homepage Meta tags.

It seems that when i changed the homepage title/meta that it was a global change and affected everything but i want the meta/title of the homepage to be differnt from the "all-products" page.

anyone wanna help?

11 Sep 2009, 1:52 AM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: how to edit homepage title/meta tags?

In your english/meta_tags.php file, you change your home-page-specific tags using these lines:```
// 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

and you change your other page-specific tags using these lines:```
// 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', '');

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

11 Sep 2009, 6:18 AM
#14
poolside avatar

poolside

New Zenner

Join Date:
May 2008
Posts:
15
Plugin Contributions:
0

Re: how to edit homepage title/meta tags?

DrByte:

In your english/meta_tags.php file, you change your home-page-specific tags using these lines:```
// 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

> and you change your other page-specific tags using these lines:```
// 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', '');

ok for the "All-Products" page I entered the following and it is still not working:

// 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_ALL_PRODUCTS','Looking forward to buy sporting Goods? Visit DomainName.com for the best sporting goods products. Order sporting goods online at cheap rate.');
define('META_TAG_KEYWORDS_ALL_PRODUCTS','buy sporting goods, sporting goods online, Online sporting goods');
define('META_TAG_TITLE_ALL_PRODUCTS', 'Buy Cheap Sporting Goods Online from Best Sports Goods Store in City, TX | DomainName.com');

the file I edited was: /includes/languages/english/meta_tags.php

why isn't it working?

11 Sep 2009, 11:41 AM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: how to edit homepage title/meta tags?

The correct main_page= value for the "All Products" page is: main_page=products_all

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