quandigital / caption
WordPress plugin to override the default [caption] shortcode
Package info
github.com/quandigital/wp-quan-caption
Type:wordpress-plugin
pkg:composer/quandigital/caption
1.0.1
2015-09-16 16:43 UTC
Requires
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2026-03-11 04:47:19 UTC
README
WordPress plugin to override the default [caption] shortcode
Usage
[caption src="IMAGEURL" width="WIDTH%"]CAPTION[/caption]
- Although the width is specified in percentages, the shortcode creates a
fullclass that is added to the container if width is100or ahalfclass if the width is anything else. - If caption is empty (i.e. there is no content in the shortcode), only the images gets returned
Example
[caption src="http://www.quandigital.com/uploads/2014/08/3_kaufprozess.png" width="100"]Unterschiedliche Kaufentscheidungsprozesse bei Männern und Frauen (<a href="http://webmagazin.de/business/ecommerce/Webdesign-E-Commerce-Frauen-shoppen-anders-Maenner-auch-Gender-Commerce?page=2">Marti Barletta, 2006</a>)[/caption]
Output
<div class="content-image full">
<img src="http://www.quandigital.com/uploads/2014/08/3_kaufprozess.png" />
<div class="caption">
Unterschiedliche Kaufentscheidungsprozesse bei Männern und Frauen (<a href="http://webmagazin.de/business/ecommerce/Webdesign-E-Commerce-Frauen-shoppen-anders-Maenner-auch-Gender-Commerce?page=2">Marti Barletta, 2006</a>)
</div>
</div>