Adding Image Description Alt in MyBB and WordPress

Steps to set your post title as alt for all images included at MyBB and WordPress as images description are important for search engines.


Set Post Title as Images Description in MyBB

1- Using your hosting CPanel “File Manager” or FTP program, enter public_html

2- Go to this folder “inc” then edit file class_parser.php

3- Find $alt = $lang->sprintf($lang->posted_image, $alt);

4-  Replace

$alt = $lang->sprintf($lang->posted_image, $alt);


// $alt = $lang->sprintf($lang->posted_image, $alt); old alt
// new alt start
global $thread;
$alt = htmlspecialchars($thread[‘subject’]);

Now check you images alt


Set Post Title as Images Description in WordPress

Just add plugin “PB SEO Friendly Images”


WordPress has a lot of plugins that automate SEO and important tasks.