[WordPress] 外掛分享: WP Direction Detector

首頁外掛目錄 › WP Direction Detector
10+
安裝啟用
尚無評分
3585 天前
最後更新
問題解決
WordPress 2.0+ v1.2.1 beta 上架:2009-09-28

內容簡介

這個外掛會自動偵測並將正確的方向(RTL 或 LTR)應用於文章標題、內文和評論。

根據 WordPress 指出,支援使用從右到左(RTL)書寫的語言,只需要在另一個名為 rtl.css 的樣式表中覆寫所有水平定位屬性即可。
但這種解決方案只適用於您只有一個 RTL 部落格(或只有一個使用傳統 style.css 的 LTR 部落格)。
其中一種解決方案:我們會讓 WordPress 將相同的 style.css 樣式表套用於 RTL 和 LTR 的文章,這個外掛會根據文章的語言自動偵測以更正方向。

這只是我測試過 WordPress 預設佈景主題的測試版本,如果您有更複雜的 CSS,歡迎提供回饋。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.1 beta) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Direction Detector」→ 直接安裝(推薦)

原文外掛簡介

This plugin auto detects and apply the right direction (RTL or LTR) on post’s titles, bodies and comments.
According to WordPress, adding support for language written in a Right To Left (RTL) direction is just a matter of overwriting all the horizontal positioning attributes of your CSS stylesheet in a separate stylesheet file named rtl.css.
But this solution is working only when you have just an RTL blog (or just an LTR blog using the classical style.css).
One of solutions: We will let WordPress applying the same style.css to both of RTL/LTR posts and this plugin will automatically detect the post language to correct its direction.
It’s just a beta version that I tested with the WordPress default theme, please let me know your feedback with your own complexed css.

文章
Filter
Apply Filters
Mastodon