Twenty20 Image Before-After

外掛說明

The Twenty20 plugin was created to allow users to swipe between two images, showcasing “before” and “after” comparisons. The plugin is designed to be fully responsive and user-friendly.

Features

  • Fully responsive across all devices.
  • No coding skills required.
  • Clean and intuitive user interface.
  • Add before-and-after comparisons to widgets.
  • Compatible with popular page builders.
  • Utilizes WP Image alt as image alt and title attributes.

Supported Page Builders

  • Flatsome UX Builder by UXThemes.

Quick Example

[twenty20 img1="" img2="" direction="vertical" offset="0.5" align="right" width="60%" before="Before" after="After" hover="true"]

Shortcode Parameters

  • img1 – image ID.
  • img2 – image ID.
  • offset – range from 0.1 to 1.0.
  • directionhorizontal|vertical.
  • alignnone|right|left.
  • width – supports both px and %.
  • before – text for the “before” label.
  • after – text for the “after” label.
  • hovertrue or false.

螢幕擷圖

  • Add a Twenty20 before-after image.
  • Select any two images from the Media Library.
  • Twenty20 shortcode settings page.
  • Shortcode.
  • Twenty20 in action.
  • Multiple sliders in different directions.
  • Twenty20 widget.
  • Widget in action.
  • WP Bakery Visual Composer settings.
  • Elementor element.
  • UX Builder element.

安裝方式

  1. Unzip the download package
  2. Upload twenty20 to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

Manual Plugin Installation

  1. Download Twenty20 Plugin to your desktop.
  2. If downloaded as a zip archive, extract the Plugin folder to your desktop.
  3. With your FTP program, upload the Plugin folder to the wp-content/plugins folder in your WordPress directory online.
  4. Go to Plugins screen and find Twenty20 Plugin in the list.
  5. Click Activate Plugin to activate it.

常見問題集

How it works?

Twenty20 works by stacking two images on top of each other. As the slider moves across the image.

Quick Example

[twenty20 img1=”” img2=”” direction=”vertical” offset=”0.5″ align=”right” width=”60%” before=”Before” after=”After” hover=”true”]

Shortcode Parameters

  • img1 – image ID.
  • img2 – image ID.
  • offset – range from 0.1 to 1.0.
  • directionhorizontal|vertical.
  • alignnone|right|left.
  • width – supports both px and %.
  • before – text for the “before” label.
  • after – text for the “after” label.
  • hovertrue or false.

How to add before-after slider?

Check the demo Video demo.

How do I add a widget?

Watch the video demo on YouTube.

Can I use more than one slider in a single post or page?

Yes, the Twenty20 plugin allows users to add unlimited before-after sliders.

使用者評論

2023 年 3 月 24 日
恐らく、このプラグインはブロックエディターに対応していないので、Gutenbergでは画像が挿入できないです。 あと、lazyload.jsや”loading=lazy”を使用すると、表示されなくなったり画像下に空白ができてしまったりするバグがあるため、画像表示が崩れます。
2022 年 3 月 21 日
Wonderful functionality for a photographer or photo re-toucher / editor. Easy to install and implement, may be caused by another plugin conflict it recently had stopped working. The support was very prompt, the developer was able to solve the issue right away!
2021 年 9 月 7 日 3 則留言
Works fine under WPv5.8 and Enfoldv4.8.6 (little bit tricky with the internal builder but it’s ok)
2021 年 6 月 3 日
This plugin does exactly what it says on the tin and works straight out-of-the-box. Excellent stuff! Oh, and it also works perfectly on WP 5.7.2 – at least with my current selection of themes.
閱讀全部 55 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Twenty20 Image Before-After〉的開發相關工作。

參與者

將〈Twenty20 Image Before-After〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.7.5

  • Fixed Elementor Widget

1.7.4

  • Fixed Elementor Widget

1.7.3

  • Bug fixes

1.7.2

  • Improve script

1.7.1

  • Bug fixes

1.7.0

  • Bug fixes

1.6.1

  • Bug fixes.

1.6.0

  • Security fixes, and passed in WordPress review.

1.5.9

  • Security fixes

1.5.8

  • Fix: Minor jQuery fix

1.5.7

  • Fix: WP 5.6 Uncaught TypeError (Thanks to @negru13)

1.5.6

  • Fix: Jetpack’s lazy load images issue

1.5.5

  • Fix: Widget mouse over.

1.5.4

  • Added: Integrated with WP Image alt.

1.5.3

  • Fixed cation overlay issue.

1.5.2

  • Fixed Before and After shortcode insert issue

1.5.1

  • Fixed loading issue

1.5

  • NEW: Add Elementor Page builder support.
  • NEW: Add UX Builder by UXThemes support.
  • Minor CSS fixes

1.4

  • NEW: ‘Move slider on mouse over’.

1.3

  • NEW: Image Before and After caption.
  • Fixed arrow shadow css.
  • Widget updated.

1.2

  • Fixed alignment bug

1.1

  • Fixed width issue

1.0

  • First Release