這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Responsive Opt-Out

外掛說明

This simple setup creates a body class called “responsive” and “fixed-width” both are added to the body class of your Theme. These two classes are used to define whether or not the visitor wants a “responsive” environment.

安裝方式

You can either install it automatically from the WordPress admin, or do it manually:

  1. Unzip the archive and put the responsive-opt-out folder into your plugins folder (/wp-content/plugins/).
  2. Activate the plugin from the Plugins menu.

Buttons

So that you have the buttons to switch you will need this html code. They can be added anywhere.

<a href="#" onclick="return FixedWidth();" class="fixed-width-link">Fixed Width</a>
<a href="#" onclick="return Responsive()" class="responsive-link">Reponsive</a>

CSS/Styling

This plugin has no css. So that the buttons display in the correct view the following css need to be added to your theme’s style.css file directly.

.responsive .fixed-width-link {
    display: block!important;
}
.responsive .responsive-link {
    display: none!important;
}
.fixed-width .fixed-width-link {
    display: none!important;
}
.fixed-width .responsive-link {
    display: block!important;
}

Add the class “.fixed-width” infront of any styles that you add for a fixed width design and “.responsive” for the responsive design.

Blog post on intregration with Responsive theme

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Responsive Opt-Out〉的開發相關工作。

參與者

將〈Responsive Opt-Out〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.3

Fix setting cookie

0.2

Fix cookie path

0.1

Initial Release