How to Add Your Own Admin Tab / Page Title

By Melanie Prough on Tuesday, February 9, 2010
Filed Under: Zen Cart Tips, Zen Cart Tutorials












By default your Zen Cart administration section uses Zen Cart! as the pages titles and tab title. For most this isn’t a big deal, but if you have many stores it may be helpful to name them more logically. Maybe you just want to change it for aesthetic reasons… In any case, it’s a simple tweak to change in in your 1.3.x Zen Cart.

In FTP or file manager backup this file to your PC

/admin/includes/languages/english.php

Now open it for editing. NOTE: If you use FTP or edit the file locally you will need to use a proper text editor like PSPad. Do not use an HTML editor or notepad, it will break the file.

Starting at line 10 find this code:

// added defines for header alt and text
define('HEADER_ALT_TEXT', 'Admin Powered by Zen Cart :: The Art of E-Commerce');
define('HEADER_LOGO_WIDTH', '200px');
define('HEADER_LOGO_HEIGHT', '70px');
define('HEADER_LOGO_IMAGE', 'logo.gif')

On the very next line add the following with your title.

define('TITLE', 'Your Admin Title');

That’s all, save the file and reload your Zen Cart admin to see the change.

Tags: , , , , ,

2 Responses to “How to Add Your Own Admin Tab / Page Title”

  1.  moosesoom Says:

    /admin/includes/languages/english.php already contains TITLE definition
    but it’s commented out:

    // removed for meta tags
    // page title
    //define(‘TITLE’, ‘Zen Cart’);

    So, if you need the same title for Catalog and Admin pages you better
    chenge TITLE definition
    in /includes/languages/english/classic/meta_tags.php

    If you need different titles for Catalog and Admin your solution is good
    but there’s no need to add TITLE definition, just uncomment and correct
    the one already there.

  2.  Melanie Prough Says:

    You are correct, the reason I suggested adding it is so that it is grouped in the correct location with the other data like header alt and logo. This just seems like a more logical place.
    Cheers

Template Original