该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

wpTextResize

描述

wpTextResize is an easy to use way to have Increase, Decrease, reset font size controls for body text on a WordPress site.

Just use the [wpResize] shortcode wherever you want the controls to show up. Or use the widget to place it in a sidebar.

Theme creators: You can also add wpTextResizeControls(0) to your template for the controls to be automatically styled, or wpTextResizeControls(1) to manually style. When manually styling, wpTextResizeControls is the container, and increaseFont, resetFont, and decreaseFont are all anchors you can target.

Go wild!

安装

  1. Upload the plugin to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Add the [wpResize] shortcode wherever you want the controls to appear.
  4. You can also use the widget to place it in a sidebar.
  5. OR Add wpTextResizeControls(0) to your template for the controls to be automatically styled, or wpTextResizeControls(1) to manually style. When manually styling, wpTextResizeControls is the container, and increaseFont, resetFont, and decreaseFont are all anchors you can target.

评价

此插件暂无评价。

贡献者及开发者

「wpTextResize」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「wpTextResize」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.5

  • Added a widget
  • When hover over one of the controls, the cursor changes to a hand
  • Bug fixes

1.4

  • Fixed issues with shortcode output
  • Better coding with returning shortcode instead of echoing
  • updated js path in plugin in case the user renames the plugin folder
  • updated version number

1.2

  • Added resizing ability to all WordPress themes, no matter what html layout exists
  • added shortcode to display controls

1.0

  • initial release