Notifications
Clear all

No alt tag on WpDiscuz image file

3 Posts
2 Users
0 Reactions
1,795 Views
(@onetorah)
New Member
Joined: 10 years ago
Posts: 2
Topic starter  

I just installed WpDisciz and my SEO plugin is giving me a warning and reducing my score from 100% to 95% on every page that has comments because a WpDiscuz image file does not have an alt image tag. It's not in my media library, so I can't add it. The file is located in the plugin folder as follows: wpdiscuz/files/img/avatar_default.png. How can I add an alt tag to this image or otherwise correct the problem? I did not see an option to remove the default avatar.

Thanks!


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4214
 

Hi onetorah.net,
Please open /helper/wc-helper.php file and find this row:

 $comm_auth_avatar = '<img width="48" height="48" class="avatar avatar-48 photo avatar-default" src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/avatar_default.png') . '" alt=""/>';

And change it to something like this:

 $comm_auth_avatar = '<img width="48" height="48" class="avatar avatar-48 photo avatar-default" src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/avatar_default.png') . '" alt="Default Avatar"/>';

   
ReplyQuote
(@onetorah)
New Member
Joined: 10 years ago
Posts: 2
Topic starter  

Thanks for the advice, I made the change. However, it looks like this is the image causing the problem:

public_html/wp-content/plugins/wpdiscuz/files/img/loader/ajax-loader-200x200.gif

Sorry that I got it wrong originally.


   
ReplyQuote
Share:
Scroll to top