Zen Cart Logo

meta keywords

Locked

Views: 9,344

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
21 Apr 2008, 6:28 PM
#1
bmpt avatar

bmpt

New Zenner

Join Date:
Jan 2008
Posts:
76
Plugin Contributions:
0

meta keywords

i need to change my meta keywords, Right now all of my products combine and make the first keyword. The keyword is all my products in one long long sentence. Can someone help me learn how to get rid of my products being displayed as a keyword?

25 Apr 2008, 12:53 PM
#2
sagewhite avatar

sagewhite

New Zenner

Join Date:
Apr 2008
Location:
Brisbane, Australia
Posts:
8
Plugin Contributions:
0

Re: meta keywords

Not quite sure what you mean, but this may help.

go to includes / languages / english and down the list click on meta_tags.php

Then inside the file find:

/ page title
define('TITLE', 'Zen Cart');

// Site Tagline
define('SITE_TAGLINE', 'Powered by Zen cart');

// Custom Keywords
define('CUSTOM_KEYWORDS', ' CHANGE THESE WORDS HERE USING A , TO SEPARATE THE WORDS');

Then save.

25 Apr 2008, 2:09 PM
#3
bmpt avatar

bmpt

New Zenner

Join Date:
Jan 2008
Posts:
76
Plugin Contributions:
0

Re: meta keywords

thanks for the reply, i figured this out the other day, i had my keywords in custom keywords, when i really needed it on homepage keywords

4 May 2008, 11:46 PM
#4
aturnedpage avatar

aturnedpage

New Zenner

Join Date:
Apr 2008
Location:
Noblesville, IN
Posts:
7
Plugin Contributions:
0

Re: meta keywords

I'm having a similar problem with my main page meta keywords. When I look at the page source from my main page in my meta keywords line I am getting my Category names all listed in front of my custom keywords.

Here is a shortened shot:
<meta name="keywords" content="Graphic Novel Shelf Used Book Case Ephemera File Comic Book Longbox Magazine Rack Magazine Ads Box Music Bin used books, back issue magazines,(then the rest of my custom keywords).

I want to be able to NOT show from Graphic Novel Shelf to Music Bin in that string. Those are the names of my Categories and somehow are put in by Zen at the beginning so that string looks like one big long keyword because there are no commas to separate the category titles.

When I go to the file includes/languages/english/meta_tags.php my Custom Keywords are fine and the way I want them to be. The added 'category title keywords' aren't showing in that file so that I COULD at least put a comma between them.

So where do I go to fix those or make them not show at all?

http://www.aturnedpage.com

Thanks for any help...

6 May 2008, 2:16 AM
#5
aturnedpage avatar

aturnedpage

New Zenner

Join Date:
Apr 2008
Location:
Noblesville, IN
Posts:
7
Plugin Contributions:
0

Re: meta keywords

Bump..

Hoping to get some help with this one.

6 May 2008, 7:04 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: meta keywords

aturnedpage:

When I go to the file includes/languages/english/meta_tags.php my Custom Keywords are fine and the way I want them to be. The added 'category title keywords' aren't showing in that file so that I COULD at least put a comma between them.
You can tell Zen Cart to use commas for separators by adding the comma in your meta_tags.php language file in this section:```
// Define divider ... usually just a space [B]or a comma plus a space[/B]
define('METATAGS_DIVIDER', ' ');

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

6 May 2008, 5:17 PM
#7
aturnedpage avatar

aturnedpage

New Zenner

Join Date:
Apr 2008
Location:
Noblesville, IN
Posts:
7
Plugin Contributions:
0

Re: meta keywords

Thank you Dr. Byte.

My meta_tag.php file already reads like this:

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

So it looks like it already should be providing a comma between those categories that are being placed in front of my custom keywords as additional keywords.

Should I have this meta_tag.php file in my Custom Template too?

6 May 2008, 8:02 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: meta keywords

I quoted the default setup, which puts spaces, not commas.
If you want the divider to be a comma, change the space to a comma and a space, as per the instructions.

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

9 May 2008, 1:47 AM
#9
kbmets7 avatar

kbmets7

Zen Follower

Join Date:
Jan 2008
Posts:
89
Plugin Contributions:
0

Re: meta keywords

How do I get rid of the first comma in the Title Tag? (between the title and site tagline? I would like it to be a dash like this page we are looking at on the forum.

Also, is it better to have All this information in the Title tag and leave Tagline blank (for search engines)? Zen Cart is the first time I have seen a tagline tag.

Kevin
https://www.PosterExpo.com

9 May 2008, 2:50 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: meta keywords

You can alter the other dividers as desired by editing them in the same file:```
// 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', ', ');

.
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 May 2008, 4:04 PM
#11
aturnedpage avatar

aturnedpage

New Zenner

Join Date:
Apr 2008
Location:
Noblesville, IN
Posts:
7
Plugin Contributions:
0

Re: meta keywords

I'll try this again. I have defined my divider in the meta_tag.php file and it IS working for the keywords that I have physically added to my site. The keywords that I want to be there.

What is happening is that somewhere in my template there must be a command telling the template to put my site 'Categories' IN FRONT of my keywords AS additional keywords and those 'Category' titles are not being divided by the comma as I would like for them to be EVEN when I define the divider as wanting a comma.

I can't seem to find the line that tells Zen to ADD those categories as keywords and to place them in front of my own keywords.

The result that I'm getting is my Categories are all reading as ONE very long keyword phrase which would make my site look totally irrelevant to a Search Engine for what my site is actually all about.

When you do a View Page Source it looks like my first keyword is:

Graphic Novel Shelf Used Book Case Ephemera File Comic Book Longbox Magazine Rack Magazine Ads Box Music Bin used books,

So, there has to be somewhere else to define the divider. Is that the Tertiary Section?

12 May 2008, 5:16 AM
#12
drbyte avatar

drbyte

Sensei

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

Re: meta keywords

The METATAGS_DIVIDER is used to separate dynamically-inserted category names. It has nothing to do with any custom keywords that you enter ... you can use commas or spaces in your custom keywords and the METATAGS_DIVIDER will be ignored ... because it's only used for dynamic building. Okay, now I'm repeating myself. But, I will repeat earlier posted content, hopefully in a little more clear manner for you:

So, if it's not doing that for you, then you've not edited the correct language file for meta_tags.php.

So, to recap what's been posted earlier ... typically that file would be /includes/languages/english/YOUR_TEMPLATE_NAME_HERE/meta_tags.php
(See the overrides documentation in the FAQs area for the explanation of what YOUR_TEMPLATE_NAME_HERE means in that sentence above)

Specifically, if you want to use a comma so that you're entirely comfortable that words are treated separately by the search engines, then you would change this:// Define divider ... usually just a space or a comma plus a space define('METATAGS_DIVIDER', ' '); to this:```
// Define divider ... usually just a space or a comma plus a space
define('METATAGS_DIVIDER', '[B],[/B] ');


Then the main metatags generator will read each of your category names, insert a comma and a space between each one, and then tack them on to the rest of the dynamically-generated meta tags along with your custom meta tags.


If all of that is not working for you, then the only reason would be that you have altered core code that handles the metatag generation ... namely /includes/modules/meta_tags.php ... BUT THAT FILE SHOULD NOT BE TOUCHED under normal circumstances.  Nevertheless, feel free to play at your own risk.

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

12 May 2008, 2:01 PM
#13
aturnedpage avatar

aturnedpage

New Zenner

Join Date:
Apr 2008
Location:
Noblesville, IN
Posts:
7
Plugin Contributions:
0

Re: meta keywords

Thank you for making that clearer for me. I was not understanding to add the second comma in that code.

It isn't always clear to us 'Newbies' and I'm sorry I tested your patience.

12 May 2008, 6:59 PM
#14
drbyte avatar

drbyte

Sensei

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

Re: meta keywords

Glad it's working for you!

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

5 Aug 2010, 9:40 AM
#15
derek53 avatar

derek53

Zen Follower

Join Date:
Jun 2009
Location:
uk
Posts:
111
Plugin Contributions:
0

Re: meta keywords

Its been a long time since the last post. i want to change the keywords that show in the source for the main page. I have edited the custom keywords, but wish to edit the none custom ones. Where can i do this ? Should the tag line be of any spoecific maximum length ?

Thanks for any help you can offer

Thanks to those that offer help

http://www.shoeshop-uk.com

6 Aug 2010, 3:24 AM
#16
imaginationtoy avatar

imaginationtoy

New Zenner

Join Date:
Jul 2010
Posts:
11
Plugin Contributions:
0

Re: meta keywords

Hello!

I am having a problem with keywords myself. I have already edited my meta_tag.php file, and all of my products have meta_tags as well, but when I check Google to see what keywords they found, the #1 keyword is cart and the #3 keyword is zen! Anyone know what I did wrong?

Thank you!

imaginationtoystation.net