這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WP Owl Carousel

外掛說明

Owl Carousel integration for WordPress

Owl Carousel author: Bartosz Wojciechowski
http://owlgraphic.com/owlcarousel/

For now, works only with images.

螢幕擷圖

  • Click Add or Upload files to insert images
  • When images selected, click use this file
  • Copy the shortcode and paste it anywhere
  • View post/page to see results

安裝方式

Go to your WordPress Dashboard. From there select Plugins -> Add New. Search for \’WP Owl Carousel\’, make sure it found the right plugin and click Install Now.

Alternatively, extract the zip file and upload the contents to the wp-content/plugins/ directory of your WordPress installation and then activate the plugin from the plugins page.

常見問題集

How to control when and how this plugin’s assets get loaded?

First you’ll need to tell the plugin not to enqueue the assets.

For all files:

add_filter('wp_owl_carousel_enqueue_assets','__return_false');

For individual files:

add_filter('wp_owl_carousel_enqueue_css','__return_false'); - Owl Carousel css

add_filter('wp_owl_carousel_enqueue_theme_css','__return_false'); - Owl Carousel Theme css, loaded after the main css

add_filter('wp_owl_carousel_enqueue_owl_js','__return_false'); - Owl Carousel minified javascript, loaded after jquery

add_filter('wp_owl_carousel_enqueue_plugin_js','__return_false'); - Plugin's own javascript, initializes the carousels, depends on plugin's JS

And now just use the ‘wp_enqueue_scripts’ action hook and wp_enqeue_script/wp_enqueue_style functions somewhere in your code.

There’s also the get_wp_owl_carousel_url() function to easily get this plugin’s url if you don’t want to copy the assets over somewhere.

使用者評論

2018 年 4 月 1 日 2 則留言
Looks awesome especially the ability to provide Rel attribute is a feature I can't find in any other plugin. Adding images is very easy and intuitive. Great plugin besides the fact that it is outdated and no longer works with the newest WordPress version. * added a star as Dabuuker replied quickly and tested the plugin with the new version of wordpress
2016 年 9 月 3 日
For the most part it works like it should and I like the functionality of it. However this plugin is useless on a mobile device when your site is responsive. I had to remove it. The other issue I find is the image gallery doesn't always reset it self and tends to get stuck. I have used the Owl Carousel on a Joomla site and works flawless. WordPress needs a little work. Still recommend though.
2016 年 9 月 3 日 1 則留言
Thanks for this, I was looking for an easy way to upload client logos without having to delve into the code. What would make your plugin super awesome!? To be able to add text as well as images for testimonials The ability to turn off the script dependencies for those who already have them minified and concatenated in the WordPress theme. Putting the scripts in the footer Keep up the awesome work : )
閱讀全部 4 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WP Owl Carousel〉的開發相關工作。

參與者

將〈WP Owl Carousel〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.1.3

  • [] array syntax replaced with array() to avoid fatal errors on hosts with old PHP version

1.1.2

  • Added filters for dequeueing plugin css and js

1.1.1

  • Fixed issue with wrong link to image size

1.1.0

  • Added ability to link to a different image size and specify a rel attribute for lightboxes

1.0.0

  • First release