Works as advertised, but could use some improvements
-
I would simply suggest:
1. Do a check to see if the shortcode exists in the_content before outputting the additional 2 CSS and 2 JS files, no one wants to slow down every page on their site just to have this on some pages.
2. Removing the need (and nag) to install the additional plugin to get the shortcode generator to work.
For anyone who doesn’t realize you can see all of the available shortcodes in the plugin’s readme.txt, here they are:
Basic requirements to get it to work:
[image-comparator left=”your-image-url-here.jpg” right=”the-second-image-url.jpg”][/image-comparator]
[image-comparator left=”your-image-url-here.jpg” right=”the-second-image-url.jpg” left_alt=”alt text for the left image” right_alt=”alt text for the right image” title=”optional title” width=”150px” classes=”anything-you-want hover”][/image-comparator]
The plugin author recommends using fixed width images so the “width” should be set to a XXXpx not XXX%.
Adding classes=”hover” will enable the hover effect, so you don’t need to use the slider below the image.
- The topic ‘Works as advertised, but could use some improvements’ is closed to new replies.