Chat Room Article Base Facebook Page Twitter RSS Feed
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 22, 2012, 11:58:58 PM

Login with username, password and session length
Search:     Advanced search
The E-commerce forum, the best place for advice for your Small Business.
12787 Posts in 1519 Topics by 6452 Members
Latest Member: Oregreetuix
* Home Help Search Login Register
+  E-commerce forum
|-+  E-commerce
| |-+  Shopping cart software
| | |-+  Zen cart
| | | |-+  Alt Attribute Text for Logo
« previous next »
Pages: [1] Print
Author Topic: Alt Attribute Text for Logo  (Read 545 times)
Baa
Member (ds)
Part of the Furniture
*****

Karma: 23
Offline Offline

Posts: 463


WWW
« on: June 09, 2011, 11:01:59 AM »

I've been scratching my head over this one for a few days, does anyone know if and how (if the if turns into a yes) to create alt text for the logo.

Logged

You cannot conduct today's business with yesterday's methods and expect your business to grow

Moon Stag Designs - Silver, Gold and Gemstone Jewellers. Jewellery for men, women and children.
seamus
zen master
Shareholder ;o)
*****

Karma: 44
Offline Offline

Gender: Male
Posts: 1109



WWW
« Reply #1 on: June 09, 2011, 03:05:18 PM »

you mean the main site logo?
you should have some alt text written in the language files for that

is it for moostagdesigns? doesnt seem to be any alt text on that logo, can put it back on there easy enough though

if it is the moonstagdesigns logo, I'll get back to you on which files to edit

great
Logged

Baa
Member (ds)
Part of the Furniture
*****

Karma: 23
Offline Offline

Posts: 463


WWW
« Reply #2 on: June 09, 2011, 04:17:34 PM »

Thanks Seamus, yes it's for the site.

I've looked at several ZCs and none have alt ext for the logo, no idea why and the ZC forum doesn't really discuss it.
Logged

You cannot conduct today's business with yesterday's methods and expect your business to grow

Moon Stag Designs - Silver, Gold and Gemstone Jewellers. Jewellery for men, women and children.
seamus
zen master
Shareholder ;o)
*****

Karma: 44
Offline Offline

Gender: Male
Posts: 1109



WWW
« Reply #3 on: June 09, 2011, 04:37:28 PM »

have a look in includes/languages/english/your_template/header.php
at line 21 you should have this:

// added defines for header alt and text
  define('HEADER_ALT_TEXT', 'Home');
  define('HEADER_SALES_TEXT', '');
  define('HEADER_LOGO_HEIGHT', '77px');
  define('HEADER_LOGO_WIDTH', '509px');
  define('HEADER_LOGO_IMAGE', 'logo.gif');

just set your alt text in there (change Home to whatever you want your alt text to say)

if you dont have a file in includes/languages/english/your_template/ called header, just copy it from includes/languages/english/
and put it in includes/languages/english/your_template/

(your_template being the name of the template you are using)

if that doesnt add the alt text, then check this file
includes/templates/your-template/common/tpl_header.php

and look for this code at around line 54

<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT, HEADER_LOGO_WIDTH, HEADER_LOGO_HEIGHT) . '[/url]'; ?></div>

notice the HEADER_ALT_TEXT
that is the call to the alt text written into the header.php in your language files, if that is missing from your tpl_header.php in your template files, it wont pull the alt text on to your header image.

it should just be a matter of checking  includes/languages/english/your_template/header.php
or adding it to your template, but if that doesnt work, check the tpl_header.php in
includes/templates/your_template/common/

great
« Last Edit: June 09, 2011, 04:41:36 PM by seamus » Logged

divegear
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« Reply #4 on: June 12, 2011, 08:53:17 PM »

I have looked at all the files you mentioned and still the alt text does not change.  All the files are correct, I am using 1.3.9h with no added modules.  Any suggestions

http://justdivegear.com/
Logged
Baa
Member (ds)
Part of the Furniture
*****

Karma: 23
Offline Offline

Posts: 463


WWW
« Reply #5 on: June 13, 2011, 01:04:29 PM »

Thanks Seamus but as Divegear said, it doesn't work.
Logged

You cannot conduct today's business with yesterday's methods and expect your business to grow

Moon Stag Designs - Silver, Gold and Gemstone Jewellers. Jewellery for men, women and children.
scotserve
Guru
Shareholder ;o)
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 820



WWW
« Reply #6 on: June 13, 2011, 01:16:08 PM »

http://tutorials.zen-cart.com/index.php?article=125
Logged

Scotserve - Premium Domain and Hosting services since 1994
seamus
zen master
Shareholder ;o)
*****

Karma: 44
Offline Offline

Gender: Male
Posts: 1109



WWW
« Reply #7 on: June 13, 2011, 02:34:44 PM »

it should work, that tutorial link only says what I've already posted

Im guessing the header in your template is quite different to the default header. It should be quite simple to fix but I'd need a look at the template to see whats been done
Logged

Baa
Member (ds)
Part of the Furniture
*****

Karma: 23
Offline Offline

Posts: 463


WWW
« Reply #8 on: June 13, 2011, 02:51:57 PM »

Thanks but I think I'll not sweat too much about this one and shelve it for a non-rainy day
Logged

You cannot conduct today's business with yesterday's methods and expect your business to grow

Moon Stag Designs - Silver, Gold and Gemstone Jewellers. Jewellery for men, women and children.
Baa
Member (ds)
Part of the Furniture
*****

Karma: 23
Offline Offline

Posts: 463


WWW
« Reply #9 on: June 20, 2011, 03:41:31 PM »

Thanks but I think I'll not sweat too much about this one and shelve it for a non-rainy day

Ended up doing the most sensible thing I could think of and asked the template creator, got the answer very quickly so I should have done that first  wink It was a simple line of code in the end :D
Logged

You cannot conduct today's business with yesterday's methods and expect your business to grow

Moon Stag Designs - Silver, Gold and Gemstone Jewellers. Jewellery for men, women and children.
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
SimplePortal 2.2.2 © 2008-2009