Jump to content


Photo
- - - - -

Alt Text Does Not Display In The Image (I Did Customize It In My Site)

imasge alt title

Best Answer beardedavenger , 01 December 2012 - 03:11 PM

I would never edit core files, it's just going to be reverted when you update. Also, alt tags work by default. Just tested with both images in a post and featured images. 

 

In Post

http://screencast.com/t/0oe1QL9Ycs

 

Featured Thumb

http://screencast.com/t/wL42tap1

 

Nick

Go to the full post


This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1 hansinke

hansinke

    Member

  • Members
  • 13 posts

Posted 01 December 2012 - 03:02 PM

In class.posts I changed the code to:

 

 

$img = ( $mode == 'top' ) ? get_the_post_thumbnail( null, 'large', trim(strip_tags( $attachment->post_excerpt ))) : get_the_post_thumbnail( null, 'thumbnail',trim(strip_tags( $attachment->post_excerpt )) );
 
For 508 section alt text is needed; maybe you should pick it up when it was filled in (and when null maybe you can use the title field).
 
 


#2 beardedavenger

beardedavenger

    Unicorn Wrangler

  • Members

  • 1219 posts

Posted 01 December 2012 - 03:11 PM   Best Answer

I would never edit core files, it's just going to be reverted when you update. Also, alt tags work by default. Just tested with both images in a post and featured images. 

 

In Post

Please Login or Register to see this Hidden Content

 

Featured Thumb

Please Login or Register to see this Hidden Content

 

Nick



#3 hansinke

hansinke

    Member

  • Members
  • 13 posts

Posted 01 December 2012 - 04:37 PM

Indeed it works, I do not know why I got the problem... I removed the code as indeed I should need to correct it every version.

 

Resolved!