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

Search Placeholder Avada

外掛說明

Customise your search placeholder text!

Search Placeholder Avada allows you to add your own custom placeholder text for Avada’s search input box.

There’s new support for all themes.

Usage

Originally built for Avada by ThemeFusion, you can now use this on any theme.

With version 2.0, there’s built-in support for Avada and WordPress default themes. You can also use a PHP hook (filter) to add any CSS selector you need.

The plugin settings are under Settings > Search Placeholder Avada.

Example Filter for Supporting Any Theme

/** Search Placeholder Avada: filter for your own CSS selectors. Separate selectors with a comma. */

add_filter( 'search_placeholder_css_selectors', function() {
        return ".this-is-a-test-class, #this-is-a-test-id, .another-class";
    }
);

Tweak the filter for your needs. Then, add it to your child theme’s functions.php file or use a code snippets plugin that supports adding PHP hooks.

Disclaimer

The Search Placeholder Avada plugin and its author are not affiliated with Avada or ThemeFusion in any way.

螢幕擷圖

  • Create your custom search placeholder.
  • You set the placeholder once and it displays in every search box.
  • Custom search placeholder text closeup.
  • Navigate to Settings > Search Placeholder Avada.
  • Plugin option settings page.

安裝方式

  1. Upload the contents of the plugin zip file to the /wp-content/plugins/search-placeholder-avada directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ page in WordPress.

常見問題集

Will this plugin work for other themes?

Yes!

Version 2.0.0 has built-in support for Avada and WordPress default themes.

It also has new PHP filter hook for you to add any CSS selectors. That means Search Placeholder Avada can work for any theme 🙂

使用者評論

2020 年 4 月 22 日 1 則留言
Hi. Installed it today and it is the smallest and easiest plug in I have. Thank You!
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Search Placeholder Avada〉的開發相關工作。

參與者

將〈Search Placeholder Avada〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

2.0.0

  • Added built-in support for WordPress’ Twenty Twenty themes.
  • Added filter for custom CSS selectors for any search input field.

1.1.0

  • Added code to delete placeholder option from the DB on plugin uninstall.
  • Tested on WordPress 5.5 and Avada 7.0.2.

1.0.0

  • First release. Tested on Avada 6.2.1 and 6.2.2.