Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default IH2 - Remove ALT Text...

    Ok, I've searched the forums and can't find any info regarding this (probably haven't look deep enough)!

    I'm looking at removing the ALT text that IH2 sets for images. The screenshot below should explain why.



    Anyone able to point me in the right direction?

  2. #2
    Join Date
    Nov 2004
    Location
    Deal, Kent, UK
    Posts
    332
    Plugin Contributions
    0

    Default Re: IH2 - Remove ALT Text...

    If you REALLY want to remove it - not good practice - then I think it's these lines in includes/functions/html_output.php

    124 - 130.

    PHP Code:
    // alt is added to the img tag even if it is null to prevent browsers from outputting
    // the image filename as default
        
    $image '<img src="' zen_output_string($src) . '" alt="' zen_output_string($alt) . '"';

        if (
    zen_not_null($alt)) {
          
    $image .= ' title=" ' zen_output_string($alt) . ' "';
        } 

  3. #3
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: IH2 - Remove ALT Text...

    Quote Originally Posted by patski
    If you REALLY want to remove it - not good practice - then I think it's these lines in includes/functions/html_output.php
    Why's it not good practice? SEO problems?

  4. #4
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: IH2 - Remove ALT Text...

    As far as I know in case sometimes your user has problems seeing images, then a mouse over will tell him abou the product/category

  5. #5
    Join Date
    Nov 2004
    Location
    Deal, Kent, UK
    Posts
    332
    Plugin Contributions
    0

    Default Re: IH2 - Remove ALT Text...

    People browsing with images turned off and for validation as well.

  6. #6
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: IH2 - Remove ALT Text...

    Mmm... Ok. They all sound like valid reasons for keeping alt text, but is there a way to stop the alt text from popping up on mouse-over?

  7. #7
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: IH2 - Remove ALT Text...

    Quote Originally Posted by Alex Clarke
    Mmm... Ok. They all sound like valid reasons for keeping alt text, but is there a way to stop the alt text from popping up on mouse-over?
    Do this change

    // alt is added to the img tag even if it is null to prevent browsers from outputting
    // the image filename as default
    // $image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';
    $image = '<img src="' . zen_output_string($src) .'"';
    if (zen_not_null($alt)) {
    //$image .= ' title=" ' . zen_output_string($alt) . ' "';
    }

 

 

Similar Threads

  1. How do I get rid of IH2 ALT text over images?
    By PUREchocolatetruffle in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Sep 2010, 03:58 PM
  2. IH2 - How to fix IE showtrail rollover, and add prod desc to alt?
    By multitech in forum All Other Contributions/Addons
    Replies: 14
    Last Post: 26 Oct 2009, 01:44 PM
  3. How do I remove alt text
    By ifonly in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 May 2008, 08:21 PM
  4. how do i remove rollover alt text from header logo
    By what44 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Nov 2007, 04:11 PM
  5. alt= / alt text setup / programming
    By prodesk in forum General Questions
    Replies: 2
    Last Post: 24 Feb 2007, 08:00 AM

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