How to Disable Image and Video Captions Feature and Auto Adding of Shortcode in WordPress 2.6如何禁用图像和视频字幕功能和自动添加的简在WordPress的2.6
WordPress 2.6 WordPress的2.6 has tons of new features to already powerful WordPress blog publishing platform, and one of the feature is image captions which display a caption of text describing the image displayed on the web page, beneath under the image itself.已吨的新功能已经很强大的WordPress的博客发布平台,其中一个特点是图像字幕的字幕显示的文字描述的形象展示在网页上,下方的形象本身。 In fact, image captioning has been made default feature, and always turned on or enabled.事实上,图像字幕已经取得了默认的功能,并始终打开或启用。 
With image captioning in WordPress 2.6, WordPress will automatically add caption shortcode to all images, graphics, photos, pictures, and videos inserted into blog posts and pages via Flash or classic media uploader.随着图像字幕在WordPress的2.6 , WordPress的将自动添加标题短的所有图片,图画,照片,图片,视频插入到博客文章和网页通过闪光或媒体上载的经典。 The shortcode [caption] and [/caption], which bracket the IMG, OBJECT or EMBED HTML elements will translate into <div> and </div> CSS attributes to position caption accordingly.该简[字幕]和[ /字幕] ,其中括弧内的IMG公司,对象或嵌入HTML元素将变成<div>和“ < /专区”的CSS属性的立场相应字幕。
Example of caption shortcode:例如短的标题:
[caption]<a><img /></a>[/caption] [标题]请<a> <img /> “ / 1 ” [ /字幕]
Not every blogger will love or need the images caption feature though.并不是每一个博客会喜欢或需要的图片说明尽管功能。 Author can skip using using [caption] and [/caption] HTML code to avoid an image or embedded video clip been showing caption below it.作者可以跳过使用使用[标题]和[ /字幕] HTML代码,以避免图像或嵌入视频剪辑被显示标题下面。 However, deleting or removing the caption shortcode that automatically been added together with the insertion of photos and videos in the visual or HTML editor.但是,删除或删除标题短,自动增加了一道插入照片和录像中的视觉或HTML编辑器。
For user who doesn’t want to use the image caption feature, and want to turn off and disable the automatic captioning (addition of caption shortcode) to images and videos, insert the following line of code into wp-config.php or the theme’s functions.php .对于用户谁不希望使用图像字幕功能,要关闭和禁用自动字幕(除了短的标题) ,以图像和视频,插入下面的代码行成可湿性粉剂,或config.php的主题氏functions.php 。
define(’CAPTIONS_OFF’, true); 界定( ' CAPTIONS_OFF ' ,真正的) ;
Once added CAPTIONS_OFF parameter, the images caption function is WordPress 2.6 is disabled, and the caption shortcode does not work or translate anymore.一旦加入CAPTIONS_OFF参数,图像字幕功能是WordPress的2.6是残疾人和字幕短不工作或翻译了。 But note that CAPTIONS_OFF constant is only a temporary variable available in WordPress version 2.6, as denoted in但是注意到,不断CAPTIONS_OFF只是一个临时变量可在WordPress的2.6版,作为被命名为中 Changeset 8321 Changeset 8321 . 。 It’s recommended that WordPress user does not use this constant as it will no longer be supported in future version of WordPress.它的建议, WordPress的用户不使用这个常数,因为它不再是支持未来版本的WordPress的。 Changeset 8358 Changeset 8358 has made the changes to enable disabling of caption support via plugin’s filter, which likely to go live on WordPress 2.6.1.取得了变化,使禁用的字幕支持通过插件的过滤器,这可能继续生活在WordPress的2.6.1 。
Update: For WordPress 2.6.1 users who want to disable captions feature, use更新:对于WordPress的2.6.1用户谁想要停用字幕功能,使用 Caption Disabler plugin标题Disabler插件 . 。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明:这是一台机器翻译网页这是“原样”提供,无保修。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article英文原文的文章 whenever possible.只要有可能。
Share and contribute or get technical support and help at共享和贡献或获得技术支持和帮助 My Digital Life Forums 我的数字生活论坛 . 。
Related Articles相关文章
- Caption Disabler WordPress Plugin to Disable and Remove Captions Functionality标题Disabler WordPress的插件禁用和删除字幕功能
- How to Change the CSS Style, Font, Spacing, Alignment and Color of WordPress Image Captions如何更改CSS样式,字体,间距,对齐和颜色的WordPress的图像字幕
- How To Add Subtitles and Captions To YouTube Video如何添加字幕和标题YouTube视频
- Disable WordPress 2.3 Core and Plugins Update Check and Notification禁用WordPress的2.3核心和插件更新检查和通知
- Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or Above禁用和关闭追踪修订后的WordPress的2.6或以上
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page如何改变频率或间隔WordPress的自动保存编辑后或网页
- How To Store Every Post Revisions on Each Auto-Save in WordPress with Limit on Versions Count如何存储每一个岗位的每修改自动保存在与WordPress的限制版本伯爵
- WordPress 2.6 with Change Revision Tracking Feature Available for Free Download WordPress的2.6变化修订追踪功能提供免费下载
- WordPress WYSIWYG Visual Editor Not Working or Not Appearing WordPress的所见即所得的可视化编辑器不工作或不出庭
- Adding Extra More Fields to WordPress Write/Edit Post/Page Right Column添加额外的更加广泛的领域内,以WordPress的收件/修改后/页右栏

































July 20th, 2008 09:04 08年7月20日9点04分
[...] Vía | My Digital Life [...] [...]大街|我的数字生活[...]
July 21st, 2008 22:56 08年7月21日22:56
[...] a helpful article that discusses a temporary solution that involves modifying /wp_config.php, but it will not permanently work. [...]一个有用的文章,论述氨基酸临时解决办法,涉及修改/ wp_config.php ,但不会永久的工作。 Add the following to [...]增加以下[...]
July 24th, 2008 01:31 2008年7月24号01:31
Big thanks, worked like a charm!大感谢,工作像魅力!
September 14th, 2008 22:22二〇 〇八年9月14日22:22
Finally what I was looking for!!最后,我一直在寻找! Thanks!谢谢!
September 19th, 2008 12:41 08年9月19号12:41
[...] If you’re still using WordPress 2.6 and want to turn off captioning, I would suggest reading this or this, though I haven’t tried these methods [...] [...]如果你仍在使用WordPress的2.6要关闭字幕,我会建议您阅读本或本,但我还没有尝试这些方法[...]
September 22nd, 2008 03:14 2008年9月22号03:14
[...] La fonction “Caption” des nouvelles versions de Wordpress sert en fait à créer un cadre au tour de votre image mais également à afficher une légende dans ce même cadre gris. [...]香格里拉fonction “标题”万新版本的WordPress的插入恩既成事实à créer取消干部太子港环法自行车你的形象看également à afficher新英格兰大学传说中的策即使干部灰。 Cela peut parfois déformer les chartes graphiques des blogs, comme ce blog par exemple.塞拉peut parfois变形莱万chartes graphiques博客,纪念策博客杆的例子。 Via MyDigitalLife [...]通过MyDigitalLife [...]
October 6th, 2008 05:05 2008年10月六号05:05
[...] who doesn’t want or doesn’t like the caption feature, WordPress developers have added a CAPTIONS_OFF constant into WordPress version 2.6. [...]谁不想要或不喜欢的字幕功能, WordPress的开发增加了CAPTIONS_OFF不断到WordPress的2.6版。 However, the constant has already been removed and no longer [...]然而,不断已被删除,并不再[...]