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

Image Switcher

描述

Note: Try your best to use 2 same height images instead of using Force Height Option

Image Switcher plugin will give you ability to set two images together and image will change on Mouse hover. There are lots of benifits you’ll
get from this particular plugin. All the list given :

  • You can create shortcode from plugin admin panel.
  • You don’t need any css skill to decorate it properly.
  • Place the shortcode wherever you want.
  • Create shortcodes directly through page builders(Visual Composer, Elementor etc) (Coming Soon!).
  • Simply place this shortcode to preview the effect [image_switcher] . But you need to generate shortcode to add your own images and details.

If anyone has any idea to improve this plugin then just let me know through Here . I’ll try my best to add that in future updates

屏幕截图

  • assets/screenshot-1.png
  • assets/screenshot-2.png

安装

  1. Upload the plugin files to the /wp-content/plugins/image-switcher directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Image Switcher screen to configure the plugin

常见问题

I’m not finding shortcode generator page, Where it is?

After installing this plugin you’ll see settings link directly, just click there. Or go to Settings => Image Switcher

Can place the shortcode in php?

Yes you can. You have to use do_shortcode(“[image_switcher]”); function.

评价

2019 年 1 月 3 日 1 回复
I looked forever for a plug-in that would do this & finally came upon this one. It works easily & really well, but I just tested my site in mobile & realized there’s no mobile support. Now I’m not sure what to do with all those lovely rollovers I just created on my site. So I’m conflicted about this one—thanks for creating this but is there any potential for a mobile option where the user taps the image & it transforms to the rollover image, then back again if tapped again?
阅读所有2条评价

贡献者及开发者

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

贡献者

将“Image Switcher”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

1.0

  • Initial release.

1.1

Improved compatibility
* -Slowness- : It was slow to change/switch image while hovering. Now it is fixed.
* -JS- : Rely on JS reduced. Now it relies on CSS.
* -Responsive- : forced height will break in tabs,mobiles. That’s mean images regular/ real height will work on tabs/mobiles.