I have the same problem. I’ve seen certain posts saying that they fixed it but I haven’t been able to get rid of them yet. Does anybody have an answer for this?
Tim
try this in the functions.php of your theme:
function no_caption($deprecated, $attr, $content) { return $content; };
add_filter('img_caption_shortcode', 'no_caption', 10, 3);
You can change the CSS that adds the caption style so that it sets the display to none. In the styles.css file it is the stuff with .caption at the beginning.
@monika: I tried your fix, but it nows give me the following code when I try to update a post in my editor:
function no_caption($deprecated, $attr, $content) { return $content; }; add_filter(‘img_caption_shortcode’, ‘no_caption’, 10, 3);
Warning: Cannot modify header information – headers already sent by (output started at /home/inspired/public_html/biggerboat/wp-content/themes/biggerboat/functions.php:2) in /home/inspired/public_html/biggerboat/wp-includes/pluggable.php on line 850
Any thoughts? I’m on 2.7.1
@curtismchale: I’m always a little loathe to use ‘display:none’ lest Google thinks the site is attempting to ‘keyword stuff’… am I being paranoid?
Roger
This works:
add_filter( 'disable_captions', create_function('$a', 'return true;') );