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

TwentyTwenty

描述

This plugin brings the power of Zurb TwentyTwenty to your blog. From our friends at Zurb:

We recently needed a way to showcase the visual differences between two images. Folks tend to typically place two images next to each other in hopes that it’ll be clear exactly what changed. We even thought about having one image fade into another. But we knew there had to be an even better way to highlight the differences between two images. A way that would bring everything into focus.

Find out more about TwentyTwenty, and see examples, on the official TwentyTwenty site from Zurb.

Watch this screencast to see the plugin in action and learn how to use it.

Instructions

  1. Make sure your before and after images are the same size. The before-and-after box will use the size of the first image, and assume that the second image is the same size.

  2. Insert two images into a post, one right after the other.

  3. Before the first image, type [twentytwenty]. After the second image, type [/twentytwenty]. See the second screenshot for an example.

Watch this screencast to see the plugin in action and learn how to use it.

屏幕截图

  • Before and after pictures in a post. Images courtesy Abbie Rowe / National Archives.
  • TwentyTwenty shortcodes in the WordPress editor. Images courtesy Abbie Rowe / National Archives.

安装

Using The WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Search for ‘TwentyTwenty’
  3. Click ‘Install Now’
  4. Activate the plugin on the Plugin dashboard

常见问题

Installation Instructions

Using The WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Search for ‘TwentyTwenty’
  3. Click ‘Install Now’
  4. Activate the plugin on the Plugin dashboard
Why aren’t my pictures lining up properly?

Make sure that the pictures are the exact same height and width, and that you choose the same display size for the images when you upload them (ex. medium, large, full size).

What browsers does this support?

TwentyTwenty is tested the latest versions of Chrome, Safari, FireFox, and iOS, and on IE 9 and above.

Can I customize how the slider looks?

Not yet, but I hope to enable that in a future release?

Will this work on any WordPress theme?

It should, but please report any issues on this blog post or the support forum to the right.

评价

2018 年 3 月 13 日
Di facile installazione e configurazione, una resa veramente notevole.
2016 年 9 月 3 日
I just built a site for a client and this plugin was just what I needed. Install, activate. enter shortcode and absolutely perfect! Thanks
2016 年 9 月 3 日
Works great for a client site who does photo retouch and needed to show before and after work. Wish it was configurable, but nothing a little custom CSS and PHP can't overcome.
2016 年 9 月 3 日
We run a power washing website and this shows the difference beautifully. Not too fast at loading though, but that's probably a mix of our internet speed and the photo size.
阅读所有23条评价

贡献者及开发者

“TwentyTwenty” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“TwentyTwenty”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

1.0

  • Initial version