Before After

February 16, 2016

Before After Plugin

Before After plugin integrates modified version [jQuery Before/After Plugin](http://www.catchmyfame.com/2009/06/25/jquery-beforeafter-plugin/ "jQ …

Before After plugin integrates modified version jQuery Before/After Plugin in the wordpress.
It can be used to show the difference between edited and original photo, before and after photos of changes, etc.

Please check ‘Other Notes’ for the Usage instructions to see how to use it on your blog

Demosites:

Demo with Latest version
Operation on custom theme

Author info:
Follow me on Twitter or become my Friend on facebook
Also on Google+

Usage

  • Write the content of your post other than the images
  • Switch to ‘HTML-editor’ mode of the post editor area
  • Click ‘BeforeAfter’ button (This will start the ‘[beforeafter]’ shortcode)
  • Add the photos to your post through the wordpress image/media uploader
  • 1 photo should be left align when you insert the images on your post, the other one can be aligned right/center/none
  • The ‘left-aligned’ photo is taken as before photo so please align your photos accordingly
  • After you have inserted the two images in the post Click ‘BeforeAfter’ button again to close ‘[/beforeafter]’ shortcode.
  • You can add more content to your post after closing the ‘[/beforeafter]’ shortcode
  • The content other than image information withing the ‘[beforeafter]…[/beforeafter]’ is ignored when the shortcode is executed, in other places like home page archive page the content will be shown as is in the post.

Installation

Requirements

  • WordPress: 2.9 or newer

Auto Installation

  • Go to your blog’s WordPress Admin Panel -> Plugins -> Add New
  • Search for “before after instruite”
  • Click “Install now”

Configuration

  • Go to your blog’s WordPress Admin Panel -> Options -> Before After
  • Set the parameters as per your requirements (should work with default parameters too)
  • See Plugin Pagefor more details on configuration parameters

Manual Installation

  • Plugin folder in the WordPress plugins folder must be before-after
  • Upload folder before-after to the /wp-content/plugins/ directory
  • Activate the plugin through the ‘Plugins’ menu in WordPress
  • Check out ‘Other Notes’ for usage instruction.

FAQ

Before after effect is breaking on my site with Chrome or Safari Browser
This effect requires image height and width to be specified with images, if your img tags conatins those parameters and stil you are having issues with Chrome or Safari web browsers
Enable Automatic Detect Dimensions on Before After Options page and reload your pages.

Issues with images not showing up or only one image being shown
Make sure code for both images “img” tag are with in the beforeafter shortcode and one image (image supposed to be before image) has “alignleft” text in “class” attribute of the “img” tag.

Issues with miss alignment of images/bar
This are mostly due to css issues of the theme. Check the post with default wordpress theme and if it works then you will need to customize css of your theme.

Changelog

1.0.2

  • Bumping the version number
  • Updated readme file with new demo info and updated FAQs

1.0.1

  • Minor Bug Fix

1.0.0

  • Total revamped of code
  • Using modified version of Jquery Before After original script to V1.3
  • Added options page
  • Before After Javascripts options can be provided through shortcode attributes now

0.1.5

  • Fixed the bug causing php error

0.1.4

  • Changed code to use JScripts bundeled with WordPress
  • Modified the beforeafter.js for a fix for depreceated function
  • bug in image cause image height to default to 0

0.1.3

  • Upgrade the original jquery.beforeafter to V1.2

0.1.2

  • Fixed a bug causing the button to put shortcode not showing up in editor

0.1.1

  • Fixed a bug caused by themes (like twentyten) which set max-width for images

0.1.0

  • Changed to show effect on pages other than single post
  • Added activation and deactivation functions to add/delete options in wp-table

0.0.3

  • No change in code just changing the version to push the upgrade

0.0.2

  • Bug fix for Internet explorer

0.0.1beta

  • Beta Release for Testing

Details

  • Version: 1.0.2
  • Active installations: 200
  • WordPress Version: 2.9
  • Tested up to: 4.4.33

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars