Howto: Disable image pop-ups in WordPress comments


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.


Share this post on…

What are your reckons?

All comments are moderated and may not be published immediately. Your email address will not be published.Allowed HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <p> <pre> <br> <img src="" alt="" title="" srcset="">

Discover more from Terence Eden’s Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading