Howto: Disable image pop-ups in WordPress comments

by @edent | # # # #

If you have the Akismet spam plugin for WordPress, you’ll be familiar with this problem.
An mshots popup obscuring the screen.
When your mouse pointer goes over any URL, you get a large website preview taking over parts of your screen.

I asked for a way to turn this off and I’m happy to say the developers listened!

Sadly, there’s no tickbox option, only a WordPress filter so you’ll have to add the following scrap of code to your theme’s functions.php file.

function disable_akismet_mshots( $value ) {
   return false;
}
add_filter( 'akismet_enable_mshots', 'disable_akismet_mshots' );

I placed it at the end of the file – but check your theme’s documentation.

Leave a Reply

Your email address will not be published. Required fields are marked *