內容簡介
將相片集短碼的樣式移至 header,這樣便不會破壞 XHTML 驗證。此外,此外掛可讓使用者停用或修改預設的相片集樣式。
在 WordPress 相片集預設使用時,樣式會被放置在文章內容中,這樣會破壞 XHTML 驗證。此外掛會使用前瞻來判斷相片集短碼是否使用於任何文章,然後將樣式移到頁面的 header 裡。
此外掛還提供了一個選項,讓使用者可以修改預設的相片集樣式CSS,或是停用相片集的樣式(這樣可讓您控制該樣式從您的模板CSS檔案中)。
此外掛使用了位於 https://trac.wordpress.org/attachment/ticket/6380/6380-style.diff 的建議修補程式。
特別感謝:
* 原始作者:Matt Martz,http://sivel.net
* 塞爾維亞-克羅埃西亞語(sr_RS)翻譯者:Borisa Djuraskovic,http://www.webhostinghub.com
* 西班牙語(es_ES)翻譯者:Ogi Djuraskovic,http://www.webhostinghub.com/
外掛標籤
開發者團隊
② 後台搜尋「Gallery Shortcode Style to Head」→ 直接安裝(推薦)
原文外掛簡介
Moves the gallery shortcode styles to the head so it doesn’t break XHTML
validation; allows disabling or modifying the default gallery styles.
By default when using the WordPress gallery, the styles are placed into the
post content which breaks XHTML validation. This plugin moves the style into
the head of the page using a look-ahead to determine if the
shortcode is used in any posts.
This plugin also gives you the option to modify the default gallery style
CSS or disable the gallery styles entirely (so you can control it from your
template CSS files).
This plugin uses ideas recommended in a patch located at
https://trac.wordpress.org/attachment/ticket/6380/6380-style.diff
Special thanks to
* The original author: Matt Martz, http://sivel.net
* Serbo-Croatian (sr_RS) translation: Borisa Djuraskovic, http://www.webhostinghub.com
* Spanish (es_ES) translation: Ogi Djuraskovic, http://www.webhostinghub.com/
