Quantcast
Channel: WordPress Experts
Viewing all articles
Browse latest Browse all 33

How to Disable Image Caption in WordPress Post Editor!

$
0
0

writing2The caption shortcode in WordPress is a neat bit of functionality. It allows you to add captions to images. However, you are not limited to just adding captions to images. You can add them to pretty much anything. In WordPress, When each time images uploaded, it lets you enter a caption to describe the file. This is very cool, but sometimes you don’t need captions at all. Here is how you can get rid of it.

To disable image caption in WordPress you have to simply paste the following lines of code in your functions.php file, and you’re done!

function caption_off() {
    return true;
}

add_filter( 'disable_captions', 'caption_off' );

 

Thanks to Wp Tricks for this nice hack!

The post How to Disable Image Caption in WordPress Post Editor! appeared first on WordPress Experts.


Viewing all articles
Browse latest Browse all 33

Trending Articles