Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    806
    Plugin Contributions
    0

    Default Custom Meta Tags on 1.5.8

    Hello All,
    Running a zc1.5.8 on php 8.2. I see the new includes/languages/english/lang.meta_tags.php is significantly different then the previous .../english/meta_tags.php. I have a handful of define pages that I'd like to set custom meta tags for. How do we do this now?

    Thank you,
    John

  2. #2
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Custom Meta Tags on 1.5.8

    I just added my custom tags to an override of lang.meta_tags.php
    Simon

  3. #3
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    806
    Plugin Contributions
    0

    Default Re: Custom Meta Tags on 1.5.8

    Quote Originally Posted by simon1066 View Post
    I just added my custom tags to an override of lang.meta_tags.php
    But how? The old way
    PHP Code:
      define('META_TAG_DESCRIPTION_ABOUT_US','somthing about us');
      
    define('META_TAG_KEYWORDS_ABOUT_US','about us');
      
    define('META_TAG_TITLE_ABOUT_US''About Us - OurCo.com'); 
    or like in the new file

    PHP Code:
    $define = [
        
    'TITLE' => 'Zen Cart!',
        
    'SITE_TAGLINE' => 'The Art of E-commerce',
        
    'CUSTOM_KEYWORDS' => 'ecommerce, open source, shop, online shopping, store',
        
    'HOME_PAGE_META_DESCRIPTION' => '',
        
    'HOME_PAGE_META_KEYWORDS' => '',
        
    'HOME_PAGE_TITLE' => '',
        
    'META_TAGS_REVIEW' => 'Reviews: ',
        
    'PRIMARY_SECTION' => ' : ',
        
    'SECONDARY_SECTION' => ' - ',
        
    'TERTIARY_SECTION' => ', ',
        
    'METATAGS_DIVIDER' => ' ',
    ];

    return 
    $define
    Thanks again,
    John

  4. #4
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    806
    Plugin Contributions
    0

    Default Re: Custom Meta Tags on 1.5.8

    Ok. Got it. All meta tags are now added to this array. I must have had the page define name mixed up my first try.

    Thank you very much Simon.

    Best,
    John

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: Custom Meta Tags on 1.5.8

    You can put them in the array definition, or add them after the initial array definition is complete.

    For an example of the second way, see lang.audience.php

    $define['TEXT_SELECT_AN_OPTION'] = 'Please Select';
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Apr 2009
    Posts
    417
    Plugin Contributions
    2

    Default Re: Custom Meta Tags on 1.5.8

    Quote Originally Posted by swguy View Post
    You can put them in the array definition, or add them after the initial array definition is complete.

    For an example of the second way, see lang.audience.php

    $define['TEXT_SELECT_AN_OPTION'] = 'Please Select';
    Additionally, you only have to set the ones you are changing.
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

 

 

Similar Threads

  1. Custom Meta Tags + Default Details
    By yaseent in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Jan 2012, 01:05 PM
  2. Custom meta tags donīt show
    By ppsoyal in forum General Questions
    Replies: 1
    Last Post: 9 May 2011, 12:33 AM
  3. Replies: 11
    Last Post: 23 Nov 2009, 02:57 AM
  4. Meta tags difference - Custom tags and....
    By Muzz in forum General Questions
    Replies: 2
    Last Post: 28 Aug 2009, 06:38 AM
  5. Custom Meta Tags??
    By nepton in forum General Questions
    Replies: 4
    Last Post: 16 May 2006, 02:54 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