Thread: meta keywords

Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Apr 2008
    Location
    Noblesville, IN
    Posts
    7
    Plugin Contributions
    0

    Default 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?

  2. #12
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default 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:
    Code:
    // Define divider ... usually just a space or a comma plus a space
      define('METATAGS_DIVIDER', ' ');
    to this:
    Code:
    // Define divider ... usually just a space or a comma plus a space
      define('METATAGS_DIVIDER', ', ');
    (Yes, that's correct ... simply insert the comma, as shown).

    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.

  3. #13
    Join Date
    Apr 2008
    Location
    Noblesville, IN
    Posts
    7
    Plugin Contributions
    0

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

  4. #14
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default 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. #15
    Join Date
    Jun 2009
    Location
    uk
    Posts
    111
    Plugin Contributions
    0

    Default 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. #16
    Join Date
    Jul 2010
    Posts
    11
    Plugin Contributions
    0

    Default 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

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Changes to home page meta description and meta keywords from admin area?
    By nic678dog in forum Customization from the Admin
    Replies: 4
    Last Post: 24 Mar 2011, 10:10 PM
  2. Meta keywords are also being used for meta description across entire site
    By bowerstech in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Mar 2010, 11:26 PM
  3. Replies: 2
    Last Post: 10 Mar 2010, 06:45 PM

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