Goto header.php and find the part between tags.
Suppose it is:
Replace this code with:
And now go to all in seo plugin.
Add this to line 92 of aioseop.class.php in wp-content/plugins/all-in-one-seo/
before:
Source
Readmore → WordPress - Show image title only on attachment page
Suppose it is:
Replace this code with:
remove this ***<***?php if (is_attachment()) { echo $post->post_title; }else{ get_title(); } ?>
And now go to all in seo plugin.
Add this to line 92 of aioseop.class.php in wp-content/plugins/all-in-one-seo/
//added by nabeel if(is_attachment()) { return; }
before:
if (is_feed()) { return; }
Now your wordpress works normally with all in one seo plugin but the attachment page titles are not stuffed with keywords anymore and contain only the image title
Source