Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2010
    Posts
    70
    Plugin Contributions
    0

    Default Why do I have blank ALT Tags for images?

    I am curious, I just recently saw a post from DrByte saying that an unmodified version of Zen Cart would show the product's name as the image ALT tag. Granted this was an old (2004) post. My question is what modification causes the ALT tag to not be displayed.

    The only modifications I've made are template changes and I have not changed anything in tpl_modules_main_product_image.php however the ALT tag is still blank.


    Any ideas?


    Thanks

    Rob

  2. #2
    Join Date
    Jan 2010
    Posts
    70
    Plugin Contributions
    0

    Default Re: Why do I have blank ALT Tags for images?

    Another note.. The tags appear everywhere except the main page... So my main page loads with a category by default. However the images don't have alt tages. They seem to everywhere else though.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Why do I have blank ALT Tags for images?

    Your URL where this can be seen in action?
    Please click Reply below and answer all the questions in the Posting Tips section.
    .

    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
    Jan 2010
    Posts
    70
    Plugin Contributions
    0

    Default Re: Why do I have blank ALT Tags for images?

    Sorry DrByte for the delay in my reply. I've been very busy with other commitments.

    my url is: WeP ayT heTa xes.com (excuse the messy design right now, we're redsigning it as we speak)
    Current version is 1.5.0
    last upgrade was from 1.3.9h to 1.5.0
    upgrades were via FTP, official procedure...

    I think that information will cover the basics. the others don't seem to relate.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Why do I have blank ALT Tags for images?

    - What addons have you installed?
    - How is your site different from original Zen Cart code?
    - What exactly is drawing that page? Is that supposed to be a category-listing? or a product-listing? How did you configure the store to draw that content as the home page? And then what changes did you make to templates to make things appear that way?
    I suspect that your custom code is attempting to pass non-existent data to the zen_image function, and thus the alt tags are left empty, since you're passing nothing to 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.

 

 

Similar Threads

  1. Alt tags for images
    By dustbowl in forum General Questions
    Replies: 1
    Last Post: 9 Aug 2012, 02:00 PM
  2. Alt Tags for images please help
    By new2u in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 12 Apr 2011, 04:48 PM
  3. no Alt tags for attribute images
    By tcjay in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Nov 2010, 05:05 PM
  4. Adding Alt tags for images ?
    By kevinmc3 in forum General Questions
    Replies: 3
    Last Post: 27 Jul 2010, 08:51 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