Before + After Images for Divi

描述

Create before-and-after image sliders in Divi easily with Before + After Images for Divi.

  • Compatible with the Visual Builder.
  • Compatible with lazy load plugins (excludes slider images).
  • Supports cropped image sizes (image size selection).
  • Mobile responsive.
  • Lightweight.

Requirements

This plugin is designed to work with the Divi Builder plugin or a theme such as Divi or Extra by Elegant Themes (affiliate link).

My Plugins for Divi

Supporting Before + After Images for Divi

If you found this free plugin helpful, please support the developer with a small donation:

Credit

Plugin created by Aaron Bolton. Before + After Images for Divi brings the power of TwentyTwenty by ZURB to your Divi Builder installation.

螢幕截圖

  • Visual Builder module.
  • Image size selection.

安裝

  1. Upload before-after-images-for-divi to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Add a new **Before + After Images* module to any Page or Post that uses the Divi Builder.
  4. Add a Before image and an After image to the module.
  5. Select an image size in the module under the Advanced tab.
  6. Click the green check to save the module.
  7. Click the green Save button in the lower right-hand corner of the screen to Save changes.

評價

2020年5月7日 1 reply
OMG! I didn't know about this plugin until I searched for before & after in the repository. I needed something to show images of rescue dogs before and after they were rescued and THIS plugin fit the bill perfectly. At first, I couldn't find how to change the image sizes under Advanced tab, but then I saw a screenshot that it was under Advanced > Attributes. I kept missing it. Thank you so much.
2019年6月27日 1 reply
I had wanted to add a feature like this to my website for ages. As a Divi Theme user, this one ticked all the boxes for me. It now appears as a Divi Module in my Divi page builder so I can add it anywhere you can add a Divi module. It doesn't affect my page loading speed. It's very easy to set up and looks great on the page. I'm very impressed and it would be good to see other features added as Divi modules in the future. If you use Divi from Elegant Themes, install this! Great work.
2019年3月1日 1 reply
The plugin deserves the five stars, great job thank you. We hope to see more options please!
2018年12月24日 1 reply
I spent hours yesterday trying to figure out how to do something even simpler than this plug-in -- a hover that revealed the before pict. This plug-in did exactly what I wanted in a very simple way. Great job!
2018年10月18日 1 reply
Simple to install and simple to use. Does exactly what I was after and looks slick in the process. Thanks for sharing.
閱讀全部7個評價

貢獻者及開發者

“Before + After Images for Divi” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

Before + After Images for Divi 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 Before + After Images for Divi 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.3.5

  • Date Updated: 2020-06-08
  • Bug Fix: Reverted change in maxWidth reference that affected overlay.

1.3.4

  • Date Updated: 2020-06-08
  • Bug Fix: Changed maxWidth reference in front-end JS function to target the offsetWidth of an object rather than index.

1.3.3

  • Date Updated: 2020-05-21
  • Bug Fix: Slider will display at default size when the user has not selected a size in the module settings.
  • Bug Fix: Visual Builder module will render full-size images on load rather than waiting for the component to re-render.
  • Bug Fix: Slider handle will better align with image clipping on the front-end slider.
  • Bug Fix: Visual Builder slider images will fall back to full-size when the selected image size is not found.

1.3.2

  • Date Updated: 2020-05-05
  • Bug Fix: Fixed typos in text domain that affected internationalization.

1.3.1

  • Date Updated: 2020-05-04
  • Bug Fix: Fixed error that caused overlay to extend beyond images on the front-end.
  • Bug Fix: Fixed error affecting extra large (scaled) images in the Visual Builder.
  • Bug Fix: Edit miscellaneous functions in BeforeAfterIMages.jsx to improve the plugin’s Visual Builder module.
  • Bug Fix: Fixed ‘$size missing index’ error that could appear when WP_DEBUG is true.
  • New Feature: Added internationalization for more Visual Builder options.

1.3.0

  • Date Updated: 2020-05-02
  • Update: Improved stability, readability and organization of codebase by rewriting many functions.
  • New Feature: Added attributes to images to support new lazy load exclusions.
  • New Feature: Replaced placeholder image with default Divi image SVG placeholder.
  • Tested for compatibility with latest versions of Divi and WordPress.

1.2.3

  • Date Updated: 2019-03-12
  • Bug Fix: Fixed multiple errors shown when WP_DEBUG is set to ‘true’.

1.2.2

  • Date Updated: 2019-03-10
  • Bug Fix: The composite image will now obey the Image Alignment setting in the Divi module.

1.2.1

  • Date Updated: 2019-03-10
  • Bug Fix: Fixed image loading order on front-end and back-end (Visual Builder).
  • Bug Fix: Hid srcset and size attributes if none are returned to improve W3C validation.

1.2.0

  • Date Updated: 2019-03-10
  • New Feature: Change the default position of the slider.
  • Acknowledgements: Thank you to @jasonbear on WordPress.org for testing, feature feedback and bug reports.
  • Bug Fix: Fixed W3C validation error due to a missing numerical value (i.e., “$size_width” is not parsing).
  • Bug Fix: Removed http:// prefix on placeholder image URL to prevent non-secure image from breaking SSL in Visual Builder.
  • Bug Fix: Miscellaneous fixes related to lazy load support.

1.1.1

  • Date Updated: 2018-12-31
  • Feature Update: Added support for lazy loading scripts. Loading Before + After images will now be properly deferred.

1.1.0

  • Date Updated: 2018-12-31
  • New Feature: Change the “Before” and “After” label text
  • Bug Fix: Improved compatibility with Jetpack, a3 Lazy Load, and Lazy Load by WP Rocket

1.0.0

  • Date Released: 2018-07-18
  • Initial Release