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

WP Image Borders

外掛說明

WP Image Borders makes it easy to:

  • automatically add borders around images in posts
  • selectively add borders around images in any part of your site
  • change image border styles
  • change image border colors
  • change image border width
  • add shadows to images in your posts

To add borders around images in your posts, simply check the checkbox in the settings titled “Add borders to all images in blog posts.” This will automatically add the borders you’ve created to all images in your blog posts.

To add borders around images in specific parts of your site, you can add a comma-delimited list of CSS classes of the image containers. You can use this to add borders to images in a certain part of your site, or in addition to adding borders to all images in your blog posts.

WP Image Borders comes with the following options for you to style your image borders with:

  • 8 Border styles (solid, dotted, dashed, double, groove, ridge, inset, outset)
  • Border width (in px)
  • Border radius (in px)
  • Border color (color picker)
  • Drop shadows (distance, blur, spread, and color options)

Additionally, you can use this plugin to remove unwanted borders on images by leaving all border style options at their default values.

螢幕擷圖

  • This is the WP Image Borders options page
  • This is an example of an image modified with WP Image Borders. It’s been given a white border and box shadow.

安裝方式

  1. Download the plugin
  2. Go to your Plugins page, then click on Add new and select the plugin’s .zip file
  3. Alternatively, you can extract the contents of the zip file directly to your wp-content/plugins/ folder
  4. Finally, go to your Plugins page and activate WP Image Borders

常見問題集

Installation Instructions
  1. Download the plugin
  2. Go to your Plugins page, then click on Add new and select the plugin’s .zip file
  3. Alternatively, you can extract the contents of the zip file directly to your wp-content/plugins/ folder
  4. Finally, go to your Plugins page and activate WP Image Borders
How do I change the direction of the drop shadows?

A positive Horizontal Distance value will put the shadow on the right side of the image, but if you make this value negative, it will move the shadow the same distance to the left instead. If you create a negative value for the Vertical Distance, it will move the shadow above the image rather than below.

What is Border Radius?

Border radius is the level of curvature of the image’s border. A higher border radius will result in rounder corners, while a border radius of zero will result in crisp right angled corners.

使用者評論

2020 年 3 月 30 日
Puts border on either ALL images or NONE but there is it seems no way to target just individual images, at least I can’t find any way to make that work.
2016 年 9 月 3 日
First of all, “Add borders to all images in blog posts” do not work so I am forced to use CSS classes manually for each image. Secondly, the CSS class syntax is also inconsistent with the Image CSS class in Image Details (Advanced Options). While the plugin setting takes classes with a “.” in front, the image settings take classes without “.”. These two issues forced me to spend a good amount of time debugging. Lastly, the borders do not fit correctly in neither tablet and mobile modes. The right sides are cut off screen, including parts of the image. Other plugins such as the Slider WD has the borders and images fitting correctly.
閱讀全部 45 則使用者評論

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

2.02

  • updated incorrect namespace for color picker function

2.01

  • fixed 404 to stylesheet

2.0

  • improved image targeting
  • simplified how custom css classes are handled
  • internationalized
  • minor style & copy updates to settings page
  • codebase refactored and reorganized
  • added additional sanitization and now preventing direct access to php files

1.5.3

  • Fixed CSS 404 error

1.5.2

  • Fixed bug with styles not enqueueing

1.5

  • removed Support Dash
  • added a default ‘add’ instead of default ‘remove’ checkbox
  • added option to add image borders based on specific CSS classes
  • now correctly enqueueing and adding inline styles
  • updated plugin banner

1.4.5

  • fixed mistake in uploading 1.4.4

1.4.4

  • Updated Support Dash script

1.4.3

  • Fixed error in previous update

1.4.2

  • Now works on all pages too

1.4.1

  • Updated to override other css generated

1.4

  • Fixed potential error with multisite installs

1.3

  • Fixed bug where gray line would appear – certain unset fields now default to zero

1.2

  • Fixed link error

1.1

  • Fixed bug with drop shadows still appearing
  • added link to review below options form
  • added settings link on plugin page
  • added screenshots
  • add plugin banner to public plugin page
  • changed tags
  • added video tutorial

1.0

  • Initial release