Title: Fix Gravatar Alt Text &amp; Title Tag
Author: Fixmysite
Published: <strong>13 Tháng 9, 2017</strong>
Last modified: 17 Tháng 10, 2025

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://s.w.org/plugins/geopattern-icon/fix-gravatar-alt-text-title-tag.svg)

# Fix Gravatar Alt Text & Title Tag

 Bởi [Fixmysite](https://profiles.wordpress.org/newtlabs/)

[Tải về](https://downloads.wordpress.org/plugin/fix-gravatar-alt-text-title-tag.1.1.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/fix-gravatar-alt-text-title-tag/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/fix-gravatar-alt-text-title-tag/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/fix-gravatar-alt-text-title-tag/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/fix-gravatar-alt-text-title-tag/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/fix-gravatar-alt-text-title-tag/)

## Mô tả

This simple, lightweight plugin solves one particular issue. WordPress doesn’t include
any alt text or a title tag when using Gravatars. This addresses that by using the
comment author name for each of your comment’s Gravatars, and for any other Gravatar
usage it should use the authors display name.

So if you create a post it will use your name for your Gravatars Alt text and Title
tag and then for the comments it will use the commenters name for their Gravatars
Alt text and Title tags.

With this plugin you can squash those pesky warnings given by SEO reporting tools
that look for missing alt text and title tags.

### Important Notes

## Cài đặt

 1. Install via the WordPress Plugin manager, or unzip and add to wp-content/plugins.
 2. Activate the plugin via the dashboard.
 3. Refresh a page containing Gravatars (Blog post most likely), clear caches if necessary.
 4. Check your source code and Gravatars should now contain the right Alt text and 
    Title tag.

Or you can just copy the function and drop it into your functions.php file, if not
wanting to use yet another plugin.

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“Fix Gravatar Alt Text & Title Tag” là mã nguồn mở. Những người sau đã đóng góp 
vào plugin này.

Những người đóng góp

 *   [ Fixmysite ](https://profiles.wordpress.org/newtlabs/)

[Dịch “Fix Gravatar Alt Text & Title Tag” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/fix-gravatar-alt-text-title-tag)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/fix-gravatar-alt-text-title-tag/),
check out [SVN repository](https://plugins.svn.wordpress.org/fix-gravatar-alt-text-title-tag/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/fix-gravatar-alt-text-title-tag/)
qua [RSS](https://plugins.trac.wordpress.org/log/fix-gravatar-alt-text-title-tag/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.1 – 2024-07-03

 * Added logic to add or replace the title attribute in the avatar image with the
   appropriate author information.
 * Implemented sanitization of author name using esc_attr() for enhanced security
 * Replaced str_replace with preg_replace for precise and robust attribute replacement
 * Added a fallback to ‘Anonymous’ if no valid author name is found.
 * Enhanced overall accuracy, flexibility, and security of the plugin

#### 1.0

 * Initial plugin – 7 September 2017

## Meta

 *  Phiên bản **1.1**
 *  Cập nhật lần cuối **1 năm trước**
 *  Số lượt cài đặt **100+**
 *  Phiên bản WordPress ** 3.1 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.8.12**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/fix-gravatar-alt-text-title-tag/)
 * Thẻ
 * [accessibility](https://vi.wordpress.org/plugins/tags/accessibility/)[alt](https://vi.wordpress.org/plugins/tags/alt/)
   [author](https://vi.wordpress.org/plugins/tags/author/)[gravatar](https://vi.wordpress.org/plugins/tags/gravatar/)
   [title](https://vi.wordpress.org/plugins/tags/title/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/fix-gravatar-alt-text-title-tag/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

[Your review](https://wordpress.org/support/plugin/fix-gravatar-alt-text-title-tag/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/fix-gravatar-alt-text-title-tag/reviews/)

## Những người đóng góp

 *   [ Fixmysite ](https://profiles.wordpress.org/newtlabs/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/fix-gravatar-alt-text-title-tag/)