![]() |
Question About Image Alt Text I was recently reviewing the alt tags for images on our site and noticed what seems like a big problem - when you view a photo in photopost, for example http://www.breederretriever.com/phot....php/photo/783 - the main image doesn't seem to have any alt text...? I would like to have the alt text for this image be the same as the page title for accessibility reasons. In the example above, this would be "Chihuhuas Meeting Great Danes." Is there a setting I missed in the admin panel to implement this, or is there perhaps a code modification someone could recommend? Thanks so much. Kris |
In showphoto.php you can replace Code: Content visible to verified customers only.Code: Content visible to verified customers only. |
Great! Worked like a charm, thanks! I don't mean to push my luck here but would you mind telling me what the name of the variable is that holds the category (within showphoto.php)? I would like to make it something like "alt=\"$filename - $categoryname\" so the ALT text would end up, for example, as "Chihuhuas Meeting Great Danes. - Chihuahua" as opposed to just "Chihuhuas Meeting Great Danes." Thanks again for your help. Edit: Oops! I just realized it looks like the change you gave me is putting the actually file name (minus the .jpg) as the alt text - is there a way I could use the page title instead? That is, the short descriptiono of the photo the user entered when uploading? |
Title variable is $title Catname is $thecatname |
Great, just what I was looking for, thanks. |
Not a problem glad to assist. |
| All times are GMT -5. The time now is 02:42 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0