Results 1 to 6 of 6
  1. #1

    Default zen_draw_seperator alt tags

    Hi,
    on my home page (http://www.curvesandcorsets.com) I have multiple pixel_trans.gif with an empty alt tag. I have tried adding an alt to the zen_draw_separator function in includes/functions/html_output file

    from:

    function zen_draw_separator($image = 'true', $width = '100%', $height = '1' ) {

    to:

    function zen_draw_separator($image = 'true', $width = '100%', $height = '1', $alt = '') {

    and then changing my tpl_header file from:

    <?php echo zen_draw_separator($image = 'pixel_trans.gif', '1', '18');?>

    to:

    <?php echo zen_draw_separator($image = 'pixel_trans.gif', '1', '18', 'Corset');?>

    but have had no joy so far :0(

    can anyone help?

    thanks,
    John

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: zen_draw_seperator alt tags

    Quote Originally Posted by johnybravo View Post
    I have multiple pixel_trans.gif with an empty alt tag.
    The ALT tags on those kinds of images SHOULD be blank.
    Those images add nothing to usability, so they SHOULD be blank so that screenreaders don't read them.
    .

    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. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: zen_draw_seperator alt tags

    While it's true that images are supposed to have alt tags, these images are completely content-free and an alt of "Corset" would actually be misleading. I think it's pointless to worry about fine details of modern standards while using a template that relies heavily on layout tables.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: zen_draw_seperator alt tags

    That's just it. They DO have alt tags. And they're appropriately blank. Therefore they are compliant with modern standards.
    .

    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. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: zen_draw_seperator alt tags

    True... :)
    I wasn't thinking about a blank tag meeting the standard.

  6. #6

    Default Re: zen_draw_seperator alt tags

    Ok, that's great, thanks for all you comments
    Guys!

 

 

Similar Threads

  1. SEO and H1..tags - Img Alt tags
    By bginn in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 Jun 2010, 09:35 PM
  2. alt tags
    By feolindo in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Oct 2008, 02:00 PM

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