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

Smoothscroller

外掛說明

This plugin adds a smooth scroll effect motion to anchor links on the same page.
You can apply the effect to all posts/pages or certain posts/pages and adjust scroll speed.

The links are bound by the id attribute.

For the source/origin element, link to the target like so, with a href attribute of the target id <a href="#example"></a>

For the target element, you give it a corresponding id attribute like so – <h2 id="example">the target</h2>

Usage

The settings are found via the dashboard Settings > Smoothscroller

  • Select to apply to all post and pages

  • Select to have on home page only

  • Select to have on certain pages only

  • Select to have on certain posts only

  • Choose the speed of the scroll

螢幕擷圖

  • Image of internal options

安裝方式

This section describes how to install the plugin:

  1. Upload the smoothscroller folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Options are in Settings => Smoothscroller

常見問題集

How do I make a link on the same page

The links are bound by the id attribute.

For the source/origin element, link to the target like so, with a href attribute of the target id <a href="#example"></a>

For the target element, you give it a corresponding id attribute like so – <h2 id="example">the target</h2>

使用者評論

2017 年 10 月 16 日
Does what is says and nothing else - that's how its supposed to be. If you ever plan on adding any features, maybe add easings (although it is not to hard your code, but some users might find that option useful).
2016 年 9 月 3 日
Great simple plugin. The only thing missing is an "offset" option for where the page scrolls to when you click an anchor link.
閱讀全部 7 則使用者評論

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.0.0

  • Initial release.
    21/08/15