开发者 | mmuro |
---|---|
更新时间 | 2012年9月14日 01:34 |
PHP版本: | 2.8 及以上 |
WordPress版本: | 3.4.1 |
image-caption-links
to the /wp-content/plugins/
directoryYes! By adding the following filter to your theme's functions.php file, you can customize the link text. `add_filter( 'icl_text', 'my_image_caption_text' ); function my_image_caption_text(){ return 'My Image Caption Link Text'; }`
Yes! If you want to customize the CSS output, add the following filter to your theme's functions.php file. `add_filter( 'icl_css', 'my_image_caption_css' ); function my_image_caption_css(){ / Replace the default image with my own / echo ' .image-caption-photo{ background:url("' . get_bloginfo('template_url') . '/images/my-image.png") no-repeat left center transparent; text-align:left; padding-left:20px; } '; }`
In order for the plugin to work correctly, you will need to: