Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] Missing Alt text on images (http://forum.bytesforall.com/showthread.php?t=21398)

capelady Jan 17, 2014 03:24 AM

[SOLVED] Missing Alt text on images
 
Hi, I am developing a new site www.coffeeforroses.com with 3.7.13, and wordpress 3.8. Although the image alt tags show up in firebug, meaning the code is there, none of the images when hovered over actually display the alt tag text. The header images are in header widgets so that I can have different versions on each page, but the posts are just regular images and/or featured images. I checked a few of the sites in the showing off thread, and some of them have alt tags that aren't showing up as well. I use firefox, but checked IE and Safari as well. Thanks.

juggledad Jan 17, 2014 04:04 AM

This is a WordPress issue

1) go do a google search on 'html img alt' and read what it does
2) The 'mouseover showing text', effect was deliberately removed from WP in version 3.5. See this thread
3) look for a plugin to resolve your issue

in the future you should alway swap to anther theme to see if the problem still exists, if it does you no it is not theme related
then disable all your plugins and see if it still exists. This will help you isolate where the problem is coming from.

capelady Jan 17, 2014 08:24 AM

Thanks, I was just going to post to say that I switched to Twenty Fourteen and noticed the same problem, then I saw your reply. That thread you mentioned is a bit confusing however, and I guess I'm not the only one confused by it. Will do as you suggested, thanks.

lmilesw Jan 18, 2014 07:36 AM

Maybe I'm not clear on what you want but to add text you will see on hover after you add an image just go into the image dialog by clicking on it and selecting the Edit Image Link. Then add a Title. Hovering over the image will show that title.

juggledad Jan 18, 2014 09:25 AM

Larry (or anyone else reading this) the issue is when you add an image there is a field 'title' that you can fill in. Prior to WP 3.5, that was automatically added to the <img......> when you added an image to a post. However as of WP 3.5 that no longer happens. The 'title=...' will not be added to the <img...> HTML any more. There is a long thread of arguments in trac (see the link in post 2) you can read if you want.

So the title a.k.a. 'tooltips' will have to be manually added or via a plugin.

lmilesw Jan 18, 2014 09:39 AM

Yes, I knew that about the hover. The Alt tag, which was mentioned in the first post, is shown when the image can't be displayed for some reason and is not meant to show on hover.

I agree that if you want the title to be auto populated there may be a plugin. If you are looking for text for SEO purposes the alt tag should be fine.

capelady Jan 18, 2014 02:55 PM

Thank you Larry, now I get it. In order to display the little yellow box aka "tooltips" when I mouseover, I need to use title="text I want" tag instead of using the alt="text I want" tag, if I'm coding it myself, as in a widget. Otherwise, on a post or page, I edit the image and fill in the title field for the image. I tried it both in widgets and on a test page, it works, thanks! Thanks to both of you. Looking at my original post, maybe I wasn't clear enough, and now I know what the alt tag and title tags are really for.


All times are GMT -6. The time now is 03:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.