View Larger Image How to fix missed WordPress Gravatar ALT attribute tag value? Add below code to your theme’s functions.php file: Copy to ClipboardSyntax Highlighterfunction w3site_gravatar_alt($w3siteGravatar) { if (have_comments()) { $alt = get_comment_author(); } else { $alt = get_the_author_meta('display_name'); } $w3siteGravatar = str_replace('alt=\'\'', 'alt=\'Avatar for ' . $alt . '\' title=\'Gravatar for ' . $alt . '\'', $w3siteGravatar); return $w3siteGravatar; } add_filter('get_avatar', 'w3site_gravatar_alt'); By Mir Saeid|2020-12-29T13:36:30-05:00July 29th, 2019|Blog|0 Comments Share This Story, Choose Your Platform! Facebook About the Author: Mir Saeid Experienced computer engineer with post graduate diploma in e-Business, Web Developer and Programmer Related Posts Redirect to a Custom Thank You Page After Checkout in WooCommerce Without Any Plugins Gallery Redirect to a Custom Thank You Page After Checkout in WooCommerce Without Any Plugins Add second description to category and shows up under products in WordPress Gallery Add second description to category and shows up under products in WordPress ajax-loader.gif problem Gallery ajax-loader.gif problem How to capture client’s IP in PHP Gallery How to capture client’s IP in PHP How to Configure SMTP for office 365 in Easy WP SMTP Plugin – WordPress Gallery How to Configure SMTP for office 365 in Easy WP SMTP Plugin – WordPress