0

Morning all, I have read lots of messages on this subject but am no closer to getting alternative text for images working on my web pages. WP 4.9.2 running the Store99 theme. If I look in one of my posts I see the img text I read about.

It looks like this:

[caption id="attachment_5159" align="alignnone" width="150"]<img class="size-thumbnail wp-image-5159" src="https://cpapforbabyboomers.com/wp-content/uploads/Amara-View-Mask-mask-frame_with-Elbow_InPixio-150x150.jpg" alt="Amara_View" width="150" height="150" /> This is the Amara View Mask frame with elbow[/caption] 

Is this not correct and if not what can I do to fix it?

  • It depends on what you're trying to do exactly, and every theme has its own quirks. Alternative Text and Caption are 2 different fields that do different things; if you want Alt text and you get Caption, make sure the text is entered in the right box when you edit the picture. – BenoitLussier Jan 21 '18 at 19:15
  • While i posted this questions there was text being written below the area I was typing and it shows the show entry, above it not the complete entry, but I assure you I am putting the text in the right place. Look at this capture. – lvsysop Jan 21 '18 at 19:30
  • We cannot see embedded images in comments. You should edit your question to include the screenshot, and all additional info such as what you are trying to accomplish exactly and what you have tried so far. You'll have much better chances of getting the answer you're looking for this way. – BenoitLussier Jan 21 '18 at 19:36
  • I did not realize you can not see that text. You tell me I need to include a screenshot but I am unable to paste anything in here. Can you tell me how to paste into this text area? Sorry I am new to this forum but appreciate your help. – lvsysop Jan 21 '18 at 20:14
  • You can click Edit on your original question to get all the options and add images. However swissspidy's comment on his own answer has the info you need: What you‘re looking for is the title attribute. That's why it's important to explain what is your goal instead of just "It does not work". – BenoitLussier Jan 21 '18 at 21:16
0

Your caption shortcode seems to be missing the most important part: the image.

The caption shortcode in WordPress usually looks like this:

[caption id="attachment_6" align="alignright" width="300"]<img src="http://localhost/wp-content/uploads/2010/07/800px-Great_Wave_off_Kanagawa2-300x205.jpg" alt="Kanagawa" width="300" height="205" class="size-medium wp-image-6" /> The Great Wave[/caption]

There you can see the alt attribute, which is automatically set when you enter the alt text after uploading an image (here: "Kanagawa"). The alt text is not visible to users, but to programs like screen readers. The other text inside the shortcode ("The Great Wave") is the caption, which on the front end is displayed below the image.

If your theme does something completely different with the caption shortcode, you should contact the theme developer and ask them for help instead.

| improve this answer | |
  • below is the complete text in the document. Isn't the ALT+ in there and correct? thanks <img class="wp-image-5159 size-thumbnail" src="cpapforbabyboomers.com/wp-content/uploads/…" alt="Amara_View" width="150" height="150" /> – lvsysop Jan 21 '18 at 19:49
  • That looks like a valid image tag. In that case "Amara_View" is the alt text for that image. – swissspidy Jan 21 '18 at 19:51
  • I thought so also, but it does not work. Time to contact the theme manufacture ?? thanks, – lvsysop Jan 21 '18 at 20:46
  • Define „does not work“? – swissspidy Jan 21 '18 at 20:47
  • sorry @swisspidy. the alt does not display when you mouse over the picture. The caption does and yes I have tested it and removed the caption but still not alt text. – lvsysop Jan 21 '18 at 20:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.