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

WP TypeIt Lite

外掛說明

This is the official free WordPress plugin for TypeIt, the most versatile animated typing utility on the planet. WP TypeIt Lite allows you to easily generate typewriter effects for your website by use of a single easy-to-configure shortcode. Place this shortcode on any post or page, and the effect will be live.

The Perks

  • Unobtrusive – All this plugin does is register a shortcode you can use in your posts.
  • Lightweight – TypeIt is 100% vanilla JavaScript, so it won’t load any dependencies like jQuery.
  • Performance in Mind – TypeIt will only be enqueued if it’s actually needed on the page.
  • The Real Deal – This plugin is created and maintained by the creator of TypeIt itself.

Want More Features & Active Development?

Being a “lite” version, this plugin largely receives maintenance updates and will probably not gain any more features than what’s currently here. By purchasing a license for the fully-featured version of the plugin, you’ll get the following:

  • Access to a Gutenberg block for creating highly customizable, dynamic effects.
  • More features for the shortcode provided by the plugin.
  • More frequent TypeIt source updates.

For more information, see here.

Using the Plugin

Make an Effect Using Shortcode Attributes

You can generate a typewriter effect by using a variation of the following shortcode in a post or page, passing each setting as a shortcode attribute.

At bare minimum, you need to pass a strings attribute:

[typeit strings="Look, I'm typing a string!"]

There also exists a wide set of attributes you may use to customize the typing effects. For example, setting speed (in milliseconds):

<h2>[typeit strings="Look, I'm typing a string!" speed="500"]</h2>

Or, making an effect continuously loop:

<h2>[typeit strings="This is a string that will loop!" speed="100" loop="true"]</h2>

Define Strings in an SEO-Friendly Way

As demonstrated, you can define a string to be typed by passing it in as a “strings” attribute. However, you may also define them by passing them inside of two enclosing shortcode tags:

[typeit speed="300"]This string will exist in your HTML, and when the page is loaded, TypeIt will take over and animate it.[/typeit]

When the tag is rendered, that string will be hard-coded on the page, rather than stored in memory on page load. The advantage to this approach is that web crawlers will be able to parse the text without JavaScript, making the content a bit more SEO-friendly.

View All Available Options

For the full list of options you may pass, refer to the documentation at typeitjs.com/docs#options.

Feedback

You like it? Email or tweet me. You hate it? Email or tweet me.

螢幕擷圖

安裝方式

  1. Download the plugin and upload to your plugins directory, or install the plugin through the WordPress plugins page.
  2. Activate the plugin through the ‘Plugins’ page.

常見問題集

The TypeIt JS library requires a paid license to use commercially. Do I need one with this plugin?

Nope! Using this free plugin doesn’t require a paid license to use, regardless of the project. However, if you wish to take advantage of the full feature set TypeIt offers, you’ll need to purchase a license and implement the JS library on your own. Or, you may hire me to help.

Do I need to worry about other JavaScript dependencies (like jQuery) for this to work?

Nope! TypeIt uses vanilla JavaScript with no external dependencies, so you’re good to go.

使用者評論

2023 年 7 月 11 日
took over 2 hours and still cant work out how to have more then 1 line of text on a loop. not sure if cos its lite or just doenst do it.. no shortcode examples of how to do it anyway.. installed a plugin called typiong effect and literally sorted it in 10 mins…. crazy
2019 年 2 月 14 日
It’s works fine on page and posts but I want to use it on my elementor page builder . But it won’t works here 🙁
閱讀全部 1 則使用者評論

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.0.0

  • Initial release.

1.0.1

  • Improve documentation.
  • Add unit testing for increased code reliability.
  • Fix bug causing camel-cased shortcode attributes to work improperly.

1.0.2

  • Improve code structure.
  • Make code more easily hookable for developers.

1.0.3

  • Update TypeIt’s source to v7.0.4.