Photo Alt Tag

4 posts by 2 authors in: Forums > CMS Builder
Last Post: August 9, 2010   (RSS)

By design9 - August 7, 2010

Hello,
I have placed the correct php coding throughout my site on all photos to show an alt tag and everything works in the backend on upload but then when you go to the live site, none of the alt tags show up. Is there something I am doing wrong?

Here is a page where I have placed the

alt="<?php echo $upload['info1'] ?>

in the photo area.

Here is the page url:
http://www.charlotteparent.com/test/pregnancy/index.php

I have also attached the index page as well. Line 285

Thanks!
April
Attachments:

index_026.php 51K

Re: [apdance9] Photo Alt Tag

By Jason - August 9, 2010

Hi April,

There isn't a problem with your code. The line that you mention (285) on that page outputs a picture called maternitypic.jpg. This does have information in it's alt tag. The rest of the picture that you output (about line 299 onwards) are not outputting info1 into the alt property. You'll just need to go through and add your code to these.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [apdance9] Photo Alt Tag

By Jason - August 9, 2010

Hi April,

It appears that all of the images that are being pulled out of CMS Builder do have the proper alt tags. If you view the page source, you'll see there is information in the alt tag. The only places I'm seeing empty alt tags is were the images have been hardcoded in, such as newslettericon.png, twiiterbirdgraphic.png, longdivider.jpg, etc.

If you're looking for the property that will display text when you move your mouse over the image, try the title property of the img tag instead of alt.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/