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 [...]然而,不斷已被刪除,並不再[...]