Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default remove additional image tags

    Hi, How can I remove the alt tags that appear on my product additional images?

    My site sells prams and the additional images may be of the choice of wheels that the customer can have, or even some accessory, but when you hover over it the alt tag is the main product name which is not correct for the image. Please help. Many thanks

  2. #2
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: remove additional image tags

    Anyone help with this? It is really annoying

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: remove additional image tags

    You'll need to hack out the $products_name variable and replace it with '' in the zen_image calls of the module that's building those images ... /includes/modules/additional_images.php
    .

    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.

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: remove additional image tags

    Bear in mind that you "lose SEO points" for having images with no alt tags.

    Additionally (if you are in the UK or EU) you are technically breaking the law. Provisions in the Disability Discrimination Act make it an offence to have elements displayed on a website that cannot be interpreted by a person with a visual impairment.

    Yes, yes... I know that's pedantic. But it's not me writing the law!
    20 years a Zencart User

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default Re: remove additional image tags

    In the US, it's Section508 of the Rehabilitation Act. It is not mandated here for other than those receiving Federal monies.

    Still, all of the requirements (including alt tags) help a search engine to traverse your site. After all, they're all "blind."
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  6. #6
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: remove additional image tags

    Thanks for the imput, I will try to find that bit of code. As for SEO I don't find my sites get penalised by any of the search engines for not having alt tags, I really don't think they carry as much weight as they used to. I have never heard of any law that would insist on them.

    You say they help traverse my site, well yes if they say the right thing i guess, but I have additional images of wheels and the alt tag says it is a pram, so not really helping at all.

    Is there a way to specify alt tags for each image?

    Is there a way that I can turn them off site wide?
    Last edited by Congerman; 24 Jun 2011 at 06:47 AM.

  7. #7
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: remove additional image tags

    In addition to the above, the alt tag is a required attribute of the <img> tag - your site will not validate without them and non-validating sites can render improperly in some browsers.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: remove additional image tags

    Quote Originally Posted by Congerman View Post
    Is there a way to specify alt tags for each image?
    No, there is no built-in way to do that in the current version.
    Quote Originally Posted by Congerman View Post
    Is there a way that I can turn them off site wide?
    No. You don't want to do that.

    The method I described will remove them for *just* the additional-product-images.
    .

    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.

  9. #9
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: remove additional image tags

    Great thanks. There are quite a few $products_name in that file do I remove them all?

  10. #10
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: remove additional image tags

    Quote Originally Posted by DrByte View Post
    You'll need to hack out the $products_name variable and replace it with '' in the zen_image calls of the module that's building those images ... /includes/modules/additional_images.php
    Quote Originally Posted by Congerman View Post
    Great thanks. There are quite a few $products_name in that file do I remove them all?
    Um no ... as I said, only the ones in the zen_image function calls.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v153 Remove image popup from additional images
    By JimboGee in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 18 Jul 2015, 03:17 PM
  2. v139h Remove larger image link from additional product pictures
    By barendfaber in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Aug 2012, 05:29 PM
  3. remove additional product info image
    By Sancho in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 22 Jul 2011, 04:24 PM
  4. remove Larger Image link under additional images
    By khopek in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 Sep 2010, 07:01 PM
  5. How to remove Pop up image Additional?
    By msherm in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Oct 2008, 03:39 PM

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