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

Effata Widget Areas

外掛說明

Want to display different widgets on a particular page only?

If you install this plugin, you can create a widget area(sidebar) and replace or concatenate it with an existing widget area.

You can create a new widget area without touching the theme.
You can display the created widget area by specifying a specific page, category, or tag.

How To Use

  1. Create a widget area in Appearance > Widget Areas
  2. Put the widget in the created widget area through Appearance > Widgets menu in WordPress

Description of settings

A description of the widget area post type settings.

Sidebar Definitions

Each corresponds to the argument of the register_sidebar().

register_sidebar(array(
    'name'          => Name
    'description'   => Description
    'class'         => Class
    'before_widget' => Before/After Widget
    'after_widget'  => Before/After Widget
    'before_title'  => Before/After Widget Title, Title Class
    'after_title'   => Before/After Widget Title
));

Display

Action

Manual, Merge, Replace
There are three options for setting the display position: Manual, Merge, Replace.

Target Widget

If you select Merge or Replace in the Action, it is the setting for which widget area to perform the action.

Position

If you select Merge in the Action, it is the setting to display before or after the widget area.

Example 1
Action: Merge
Target widget: Home page
Position: After
Then, this widget area will be displayed after the home page widget area.

Example 2
Action: Replace
Target Widget: Sidebar
Then this widget area will be displayed instead of the sidebar widget area.

However, if you keep Example 2, the sidebar will be replaced on all pages.
Therefore, set the condition in the Conditions meta box.

Conditions

It is a condition that the widget area is displayed.
You can specify the post ID on the “Post” tab and the category on the “Term” tab.

For example, under the condition of Example 2, further
Visibility Range: Select Pages
Posts & Pages: 98765
Then, only the sidebar of the post with post ID 98765 can display this widget area instead of the sidebar widget area.

Also, under the conditions of Example 2.
Visibility Range: Select Pages
Term: Uncategorized
Then, only articles belonging to the uncategorized category can display this widget area instead of the sidebar widget area.

The other two are for the action “Manual”.

PHP Code

This widget area will be displayed where this code is located.
It is supposed to be used by pasting it on the theme.

Shortcode

This widget area will be displayed where this code is located.
You can use it anywhere, such as articles and custom HTML for widgets.

螢幕擷圖

  • screenshot-1.png
  • screenshot-2.png

安裝方式

  1. Upload plugin to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題集

Is it available on the block editor from managing widgets?

Yes. You can use it in that environment.
Or you can use it with the Classic Widgets plugin.

Can it be used for themes that have not released the widget function?

Sure, go ahead. But it may not be very useful.

使用者評論

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

參與者及開發者

以下人員參與了開源軟體〈Effata Widget Areas〉的開發相關工作。

參與者

〈Effata Widget Areas〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Effata Widget Areas〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0

  • We have released this plugin.

1.0.1

  • Fixed JS error that occurs in WordPress 5.7.

1.0.2

  • Renamed constants that are prone to duplication with many themes and plugins.

1.0.2.1

  • Fixed a warning when enabled or updated plugins.

1.0.3

  • Tested with WordPress 5.8.

<!–