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

scrollup

外掛說明

This is just a very simple plugin to have a unified “back to top” button / link throughout your whole blog. Juste put [retour] whenever you want the link to the top to appear.

安裝方式

  1. Unzip scrollup.zip
  2. Upload the scrollup folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Place [retour] as many time as you want in your posts and pages.

常見問題集

Can I change the image?

Sure. Just replace the arrow.png file in the plugin’s folder by your own arrow.png.

It does not work in xyz browser

I suggest changing slightly the code of your header. After the <body> tag, look for the following code: <a href="<?php echo home_url(); ?>">, and change it for <a href="<?php echo home_url(); ?>" name="top">.

You added shortcodes arguments? Which ones?

You can now indeed use these args to modify the comportment of the plugin:
* ancrage: anchoring point, default is top. You can substitute an anchor point name, for example if you only want it to go up to the search box, and the search box name or id is sbox, just use ancrage="sbox" in the shortcode
* laimg: image as link, default is 1 (true). You can turn it to 0 (false) if you only want text and no image in the link
* lalt: alt text of the image / link, default is ▼ Sommet. Aka a triangle pointing up and the word “top” in French. You could use a big ^, an arrow (by its ascii code), …
* lavant: what comes before the link, default is <p class="thescrollup">. Change it to fit your post / CSS / …
* lapres: what comes after the link, default is </p>. Change it to go with lavant.

Give me an example, please?

All right: [retour ancrage="sbox" lavant="" lapres="<br />" laimg="FALSE" lalt="&uarr;"] will create a “text” arrow pointing to the search box named sbox, with just a line break after it.

使用者評論

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

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.1

  • Verification of compatibility
  • Adding the shortocde arguments to make it easier.

1.0

  • First version