WordPress.org

Support

Support » How-To and Troubleshooting » How to change post thumbnail title and alt attributes to post title?

How to change post thumbnail title and alt attributes to post title?

  • i need to change the post thumbnail title and alt attributes to post title on homepage area, so i think it’s outside the post loop.

    here it’s my code.

    http://pastebin.com/RgBfpgY4

    when i`m using the_title() or the_title_attribute() the text is displayed above the images instead on images hover.

    thanks for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change post thumbnail title and alt attributes to post title?’ is closed to new replies.
Skip to toolbar